From ed0d7ef77f0d659720b4c9b211b8e91fde64472c Mon Sep 17 00:00:00 2001 From: shugo Date: Mon, 24 Nov 2008 12:42:45 +0000 Subject: * 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 --- test/ruby/test_time.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/ruby') 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 -- cgit