diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-15 08:31:58 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-15 08:31:58 +0000 |
commit | 8a0cd16de1b523fa80ec0e02ae7f114d28fa41b7 (patch) | |
tree | 656aea4dc99e2783673a5d74e14fc64d78aee266 /test/ruby/test_sprintf_comb.rb | |
parent | 6a443e2eb2ce6dcde4d01be4a48fd1158dc96356 (diff) | |
download | ruby-8a0cd16de1b523fa80ec0e02ae7f114d28fa41b7.tar.gz |
Revert "* sprintf.c (rb_str_format): fix: sprintf with hex format and"
This reverts commit a160986d90cf90a86e01d60eddb04ffe0e584c36.
Revert wrong commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_sprintf_comb.rb')
-rw-r--r-- | test/ruby/test_sprintf_comb.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_sprintf_comb.rb b/test/ruby/test_sprintf_comb.rb index 3105127046..261732bcbc 100644 --- a/test/ruby/test_sprintf_comb.rb +++ b/test/ruby/test_sprintf_comb.rb @@ -190,7 +190,7 @@ class TestSprintfComb < Test::Unit::TestCase if digits.last != radix-1 digits << (radix-1) end - sign = '..' unless precision + sign = '..' else sign = '-' end @@ -222,8 +222,8 @@ class TestSprintfComb < Test::Unit::TestCase end end if type == 'o' && hs - if digits.empty? || digits.last != 0 - prefix = '0' + if digits.empty? || digits.last != d + digits << d end end |