mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 15:36:16 +02:00
* vsnprintf.c (BSD_vfprintf): clear ALT flag for %a.
[ruby-core:32841] [ruby-core:32848] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
73057fb85b
commit
fb796561f0
3 changed files with 8 additions and 0 deletions
|
@ -221,8 +221,10 @@ class TestSprintf < Test::Unit::TestCase
|
|||
assert_equal("-0x1.08p+0", sprintf("%010a", -1.03125), bug3962)
|
||||
|
||||
bug3964 = '[ruby-core:32848]'
|
||||
assert_equal("0x000000000000000p+0", sprintf("%020a", 0), bug3962)
|
||||
assert_equal("0x000000000000001p+0", sprintf("%020a", 1), bug3964)
|
||||
assert_equal("-0x00000000000001p+0", sprintf("%020a", -1), bug3964)
|
||||
assert_equal("0x000000000000000p+0", sprintf("%#020a", 0), bug3962)
|
||||
end
|
||||
|
||||
BSIZ = 120
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue