summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-24 12:42:45 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-24 12:42:45 +0000
commited0d7ef77f0d659720b4c9b211b8e91fde64472c (patch)
tree38a80b71c68bbb0867a2d47d194702737cc499f5 /test
parent61e706902381269659c41e1b1c3b877d8ec269d4 (diff)
downloadruby-ed0d7ef77f0d659720b4c9b211b8e91fde64472c.tar.gz
ruby-ed0d7ef77f0d659720b4c9b211b8e91fde64472c.tar.xz
ruby-ed0d7ef77f0d659720b4c9b211b8e91fde64472c.zip
* strftime.c (rb_strftime): The default precision should be 1, not
0. [ruby-dev:37155] * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_time.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb
index 3a9b05580..d3b698264 100644
--- a/test/ruby/test_time.rb
+++ b/test/ruby/test_time.rb
@@ -444,5 +444,10 @@ class TestTime < Test::Unit::TestCase
assert_equal(" 2", t.strftime("%l"))
assert_equal("02", t.strftime("%0l"))
assert_equal(" 2", t.strftime("%_l"))
+
+ # [ruby-dev:37155]
+ t = Time.mktime(1970, 1, 18)
+ assert_equal("0", t.strftime("%w"))
+ assert_equal("7", t.strftime("%u"))
end
end