diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-08 06:44:39 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-08 06:44:39 +0000 |
commit | 599a7071c1789013dc8c8a4edeb5d54bc2fb71a6 (patch) | |
tree | 0884e6812de4fa89f3c0036479bcb77acbbfdf69 /test | |
parent | 1f3e96b7ac73401c15df4d77bdcf6f441813c443 (diff) | |
download | ruby-599a7071c1789013dc8c8a4edeb5d54bc2fb71a6.tar.gz |
* vsnprintf.c (BSD_vfprintf): fix precision specifier doesn't
work well on %f. [ruby-dev:42552]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_sprintf.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_sprintf.rb b/test/ruby/test_sprintf.rb index 33794c9296..b82cbc4b90 100644 --- a/test/ruby/test_sprintf.rb +++ b/test/ruby/test_sprintf.rb @@ -189,6 +189,7 @@ class TestSprintf < Test::Unit::TestCase assert_equal("36893488147419111424", sprintf("%20.0f", 36893488147419107329.0)) assert_equal(" Inf", sprintf("% 0e", 1.0/0.0), "moved from btest/knownbug") + assert_equal(" -0.", sprintf("%#10.0f", -0.5), "[ruby-dev:42552]") end def test_float_hex |