diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_sprintf.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_sprintf.rb b/test/ruby/test_sprintf.rb index ad77df19b8..33794c9296 100644 --- a/test/ruby/test_sprintf.rb +++ b/test/ruby/test_sprintf.rb @@ -230,6 +230,10 @@ class TestSprintf < Test::Unit::TestCase assert_equal("0x1.p+0", sprintf("%#.0a", 1), bug3965) assert_equal("0x00000000000000.p+0", sprintf("%#020a", 0), bug3965) assert_equal("0x0000.0000000000p+0", sprintf("%#020.10a", 0), bug3965) + + bug3979 = '[ruby-dev:42453]' + assert_equal(" 0x0.000p+0", sprintf("%20.3a", 0), bug3979) + assert_equal(" 0x1.000p+0", sprintf("%20.3a", 1), bug3979) end BSIZ = 120 |