summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-24 08:44:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-24 08:44:03 +0000
commit743f2bf879bf1f49d0c26867827b5f1db050f315 (patch)
treefdf49eba97756a3de728abefe46214f00d4a9f3b /test
parent44a247c745368ad9950d2ed02f2b3424e5759ef5 (diff)
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')
-rw-r--r--test/ruby/test_time.rb3
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