summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-24 13:10:07 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-24 13:10:07 +0000
commit86ff9dda4781c853c80f7ea239f33a021d368726 (patch)
tree0d0ad33ccde61a2ad995b162d07c129c5eb79355 /test
parented0d7ef77f0d659720b4c9b211b8e91fde64472c (diff)
downloadruby-86ff9dda4781c853c80f7ea239f33a021d368726.tar.gz
ruby-86ff9dda4781c853c80f7ea239f33a021d368726.tar.xz
ruby-86ff9dda4781c853c80f7ea239f33a021d368726.zip
* strftime.c (rb_strftime): The precision of %0N should be 9.
[ruby-dev:37156] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_time.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb
index d3b698264..b15027c1f 100644
--- a/test/ruby/test_time.rb
+++ b/test/ruby/test_time.rb
@@ -396,7 +396,7 @@ class TestTime < Test::Unit::TestCase
assert_equal("123456", t.strftime("%6N"))
assert_equal("123456789", t.strftime("%9N"))
assert_equal("1234567890", t.strftime("%10N"))
- assert_equal("", t.strftime("%0N"))
+ assert_equal("123456789", t.strftime("%0N"))
assert_equal("000", t.strftime("%3S"))
assert_equal("946684800", t.strftime("%s"))
assert_equal("946684800", t.utc.strftime("%s"))