diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-24 15:12:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-24 15:12:56 +0000 |
commit | ed3fddeddd3b1432b6b73ba2f6497fb60c4110c6 (patch) | |
tree | b8a39281a3e639ebd506dc378e77ea6540be4061 /test | |
parent | 19e9d2e719d455242842a1af63ff5028083188fc (diff) | |
download | ruby-ed3fddeddd3b1432b6b73ba2f6497fb60c4110c6.tar.gz |
strftime.c: set buffer length
* strftime.c (FMTV): set the buffer length before appending to
keep just put part.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_time.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb index bf38374f62..c75cffaacf 100644 --- a/test/ruby/test_time.rb +++ b/test/ruby/test_time.rb @@ -758,7 +758,7 @@ class TestTime < Test::Unit::TestCase assert_equal("-0001", t.strftime("%G")) t = Time.utc(10000000000000000000000,1,1) - assert_equal("10000000000000000000000", t.strftime("%Y")) + assert_equal("<<10000000000000000000000>>", t.strftime("<<%Y>>")) end def test_strftime_weeknum |