diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb index cfbf42d6f6..97a5ce7bdf 100644 --- a/test/ruby/test_time.rb +++ b/test/ruby/test_time.rb @@ -171,6 +171,7 @@ class TestTime < Test::Unit::TestCase assert_equal(100000, Time.at(0.0001).nsec) assert_equal(10000, Time.at(0.00001).nsec) assert_equal(3000, Time.at(0.000003).nsec) + assert_equal(200, Time.at(0.0000002r).nsec) assert_equal(199, Time.at(0.0000002).nsec) assert_equal(10, Time.at(0.00000001).nsec) assert_equal(1, Time.at(0.000000001).nsec)