mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/scanf.rb: support %a format. [ruby-dev:40650]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7b93993b20
commit
2067e4eb30
3 changed files with 28 additions and 7 deletions
|
@ -276,6 +276,8 @@ module ScanfTests
|
|||
[ "%g", "+3.25", [3.25] ],
|
||||
[ "%G", "+3.25e2", [325.0] ],
|
||||
[ "%f", "3.z", [3.0] ],
|
||||
[ "%a", "0X1P+10", [1024.0] ],
|
||||
[ "%A", "0x1.deadbeefp+99", [1.1851510441583988e+30] ],
|
||||
|
||||
# Testing embedded matches including literal '[' behavior
|
||||
[",%d,%f", ",10,1.1", [10,1.1] ],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue