summaryrefslogtreecommitdiff
path: root/test/scanf
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 12:34:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 12:34:13 +0000
commit4bf6a04f49a23ab33f6c9209a873c08b6f28fb37 (patch)
tree434f6d59df910aec76407fbb02968858d00b3344 /test/scanf
parent6fba455acbac14d1e5f0e789b8a74101fe060514 (diff)
Fix bug about String#scanf("%a")
* lib/scanf.rb (extract_float, initialize): allow to omit a sign on the binary exponent. [ruby-core:82435] [Bug #13833] [Fix GH-1689] From: tarotaro0 <tarousann11922960@yahoo.co.jp> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/scanf')
-rw-r--r--test/scanf/test_scanf.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/scanf/test_scanf.rb b/test/scanf/test_scanf.rb
index 827eb2fc3b..988ff99adc 100644
--- a/test/scanf/test_scanf.rb
+++ b/test/scanf/test_scanf.rb
@@ -258,6 +258,7 @@ module ScanfTests
[ "%G", "+3.25e2", [325.0] ],
[ "%f", "3.z", [3.0] ],
[ "%a", "0X1P+10", [1024.0] ],
+ [ "%a", "0X1P10", [1024.0] ],
[ "%A", "0x1.deadbeefp+99", [1.1851510441583988e+30] ],
# Testing embedded matches including literal '[' behavior