diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-24 12:42:45 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-24 12:42:45 +0000 |
commit | 32aed810463a40807db2192c91faa7cec2cb23d5 (patch) | |
tree | 38a80b71c68bbb0867a2d47d194702737cc499f5 /test/ruby | |
parent | 153785583347f51faf028396c177b2421ffb122c (diff) | |
download | ruby-32aed810463a40807db2192c91faa7cec2cb23d5.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@20338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_time.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb index 3a9b055802..d3b6982649 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 |