diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-24 08:44:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-24 08:44:03 +0000 |
commit | 743f2bf879bf1f49d0c26867827b5f1db050f315 (patch) | |
tree | fdf49eba97756a3de728abefe46214f00d4a9f3b /test/ruby | |
parent | 44a247c745368ad9950d2ed02f2b3424e5759ef5 (diff) | |
download | ruby-743f2bf879bf1f49d0c26867827b5f1db050f315.tar.gz |
strftime.c: fix FMTV
* strftime.c (FMT_PADDING): extract format for padding.
* strftime.c (FMT_PRECISION): extract precision formula.
* strftime.c (FMTV): append formatted string to expand the result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_time.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb index 24545b216c..bf38374f62 100644 --- a/test/ruby/test_time.rb +++ b/test/ruby/test_time.rb @@ -756,6 +756,9 @@ class TestTime < Test::Unit::TestCase t = Time.utc(-1,1,4) assert_equal("-0001", t.strftime("%Y")) assert_equal("-0001", t.strftime("%G")) + + t = Time.utc(10000000000000000000000,1,1) + assert_equal("10000000000000000000000", t.strftime("%Y")) end def test_strftime_weeknum |