diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-28 15:01:07 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-28 15:01:07 +0000 |
commit | 6a7481c38db51f1cd0818412375c76202ad04168 (patch) | |
tree | 3345eb2f9ffb0a84f78448829e85bc32baef8342 /test | |
parent | 5ef4c56784db4b4ac6eefc865774015a75796acf (diff) | |
download | ruby-6a7481c38db51f1cd0818412375c76202ad04168.tar.gz |
* strftime.c (rb_strftime): Time.mktime(2000).strftime("%-S") should
return "0", not "".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_time.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb index 4378e6ff14..237721c4db 100644 --- a/test/ruby/test_time.rb +++ b/test/ruby/test_time.rb @@ -382,6 +382,7 @@ class TestTime < Test::Unit::TestCase assert_equal("2000", T2000.strftime("%Y")) assert_equal("UTC", T2000.strftime("%Z")) assert_equal("%", T2000.strftime("%%")) + assert_equal("0", T2000.strftime("%-S")) assert_equal("", T2000.strftime("")) assert_equal("foo\0bar\x0000\x0000\x0000", T2000.strftime("foo\0bar\0%H\0%M\0%S")) |