class TC_MysqlTime
Public Instance Methods
setup()
click to toggle source
# File test.rb, line 1393 def setup() end
teardown()
click to toggle source
# File test.rb, line 1395 def teardown() end
test_day()
click to toggle source
# File test.rb, line 1422 def test_day() t = Mysql::Time.new assert_equal(23, t.day = 23) assert_equal(23, t.day) end
test_eql()
click to toggle source
# 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
test_hour()
click to toggle source
# File test.rb, line 1428 def test_hour() t = Mysql::Time.new assert_equal(15, t.hour = 15) assert_equal(15, t.hour) end
test_init()
click to toggle source
# 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
test_minute()
click to toggle source
# File test.rb, line 1434 def test_minute() t = Mysql::Time.new assert_equal(58, t.month = 58) assert_equal(58, t.month) end
test_month()
click to toggle source
# File test.rb, line 1416 def test_month() t = Mysql::Time.new assert_equal(11, t.month = 11) assert_equal(11, t.month) end
test_second()
click to toggle source
# File test.rb, line 1440 def test_second() t = Mysql::Time.new assert_equal(34, t.second = 34) assert_equal(34, t.second) end
test_tos()
click to toggle source
# File test.rb, line 1446 def test_tos() t = Mysql::Time.new(2005, 7, 19, 10, 15, 49) assert_equal("2005-07-19 10:15:49", t.to_s) end
test_year()
click to toggle source
# File test.rb, line 1410 def test_year() t = Mysql::Time.new assert_equal(2005, t.year = 2005) assert_equal(2005, t.year) end