In Files

Parent

TC_MysqlTime

Public Instance Methods

setup() click to toggle source
      # File test.rb, line 1393
1393:   def setup()
1394:   end
teardown() click to toggle source
      # File test.rb, line 1395
1395:   def teardown()
1396:   end
test_day() click to toggle source
      # File test.rb, line 1422
1422:   def test_day()
1423:     t = Mysql::Time.new
1424:     assert_equal(23, t.day = 23)
1425:     assert_equal(23, t.day)
1426:   end
test_eql() click to toggle source
      # File test.rb, line 1451
1451:   def test_eql()
1452:     t1 = Mysql::Time.new(2005,7,19,23,56,13)
1453:     t2 = Mysql::Time.new(2005,7,19,23,56,13)
1454:     assert_equal(t1, t2)
1455:   end
test_hour() click to toggle source
      # File test.rb, line 1428
1428:   def test_hour()
1429:     t = Mysql::Time.new
1430:     assert_equal(15, t.hour = 15)
1431:     assert_equal(15, t.hour)
1432:   end
test_init() click to toggle source
      # File test.rb, line 1398
1398:   def test_init()
1399:     t = Mysql::Time.new
1400:     assert_equal(0, t.year);
1401:     assert_equal(0, t.month);
1402:     assert_equal(0, t.day);
1403:     assert_equal(0, t.hour);
1404:     assert_equal(0, t.minute);
1405:     assert_equal(0, t.second);
1406:     assert_equal(false, t.neg);
1407:     assert_equal(0, t.second_part);
1408:   end
test_minute() click to toggle source
      # File test.rb, line 1434
1434:   def test_minute()
1435:     t = Mysql::Time.new
1436:     assert_equal(58, t.month = 58)
1437:     assert_equal(58, t.month)
1438:   end
test_month() click to toggle source
      # File test.rb, line 1416
1416:   def test_month()
1417:     t = Mysql::Time.new
1418:     assert_equal(11, t.month = 11)
1419:     assert_equal(11, t.month)
1420:   end
test_second() click to toggle source
      # File test.rb, line 1440
1440:   def test_second()
1441:     t = Mysql::Time.new
1442:     assert_equal(34, t.second = 34)
1443:     assert_equal(34, t.second)
1444:   end
test_tos() click to toggle source
      # File test.rb, line 1446
1446:   def test_tos()
1447:     t = Mysql::Time.new(2005, 7, 19, 10, 15, 49)
1448:     assert_equal("2005-07-19 10:15:49", t.to_s)
1449:   end
test_year() click to toggle source
      # File test.rb, line 1410
1410:   def test_year()
1411:     t = Mysql::Time.new
1412:     assert_equal(2005, t.year = 2005)
1413:     assert_equal(2005, t.year)
1414:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.