diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-19 03:19:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-19 03:19:30 +0000 |
commit | c511d26f6ae87f16956fe40fe5a5cfb6b66811b2 (patch) | |
tree | 07e887952acaa6df812940779b9a1ad907fc727f /test/ruby | |
parent | da55cfdf724beccb3fcfddf0ce318f9fb1b36c85 (diff) | |
download | ruby-c511d26f6ae87f16956fe40fe5a5cfb6b66811b2.tar.gz |
* vsnprintf.c (BSD_vfprintf): fix over-count of field size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_sprintf.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_sprintf.rb b/test/ruby/test_sprintf.rb index 3de1cbc1b5..631328ea0a 100644 --- a/test/ruby/test_sprintf.rb +++ b/test/ruby/test_sprintf.rb @@ -219,6 +219,8 @@ class TestSprintf < Test::Unit::TestCase assert_equal("-0x01.2p+0", sprintf("%010a", -1.125), bug3962) assert_equal("-0x01.1p+0", sprintf("%010a", -1.0625), bug3962) assert_equal("-0x1.08p+0", sprintf("%010a", -1.03125), bug3962) + assert_equal("0x000000000000001p+0", sprintf("%020a", 1), bug3962) + assert_equal("-0x00000000000001p+0", sprintf("%020a", -1), bug3962) end BSIZ = 120 |