diff options
Diffstat (limited to 'test/ruby/test_time.rb')
-rw-r--r-- | test/ruby/test_time.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb index fe62f6a5b1..049693037d 100644 --- a/test/ruby/test_time.rb +++ b/test/ruby/test_time.rb @@ -379,5 +379,9 @@ class TestTime < Test::Unit::TestCase assert_equal("foo" * 1000, T2000.strftime("foo" * 1000)) assert_equal("Sat", Time.at(946684800).strftime("%a")) + + t = Time.at(946684800, 123456.789) + assert_equal("123", t.strftime("%L")) + assert_equal("123456789", t.strftime("%N")) end end |