From 2067e4eb30eb78b36c252baff319c6d581700460 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 1 Apr 2010 04:32:22 +0000 Subject: * 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 --- test/scanf/test_scanf.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/scanf') diff --git a/test/scanf/test_scanf.rb b/test/scanf/test_scanf.rb index 2ec4e54d94..169ffe63a1 100644 --- a/test/scanf/test_scanf.rb +++ b/test/scanf/test_scanf.rb @@ -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] ], -- cgit v1.2.3