Test::Unit::TestCase
# File test.rb, line 1422 def test_day() t = Mysql::Time.new assert_equal(23, t.day = 23) assert_equal(23, t.day) end
# File test.rb, line 1451 def test_eql() t1 = Mysql::Time.new(2005,7,19,23,56,13) t2 = Mysql::Time.new(2005,7,19,23,56,13) assert_equal(t1, t2) end
# File test.rb, line 1428 def test_hour() t = Mysql::Time.new assert_equal(15, t.hour = 15) assert_equal(15, t.hour) end
# File test.rb, line 1398 def test_init() t = Mysql::Time.new assert_equal(0, t.year); assert_equal(0, t.month); assert_equal(0, t.day); assert_equal(0, t.hour); assert_equal(0, t.minute); assert_equal(0, t.second); assert_equal(false, t.neg); assert_equal(0, t.second_part); end
# File test.rb, line 1434 def test_minute() t = Mysql::Time.new assert_equal(58, t.month = 58) assert_equal(58, t.month) end
# File test.rb, line 1416 def test_month() t = Mysql::Time.new assert_equal(11, t.month = 11) assert_equal(11, t.month) end
# File test.rb, line 1440 def test_second() t = Mysql::Time.new assert_equal(34, t.second = 34) assert_equal(34, t.second) end
Generated with the Darkfish Rdoc Generator 2.