From 1720e7e0dff72463bd0715200ca48b0af365e7c2 Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 28 Mar 2010 04:26:42 +0000 Subject: * lib/scanf.rb: fix max width modifier for %f. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/scanf/test_scanf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/scanf') diff --git a/test/scanf/test_scanf.rb b/test/scanf/test_scanf.rb index 4526e73641..2ec4e54d94 100644 --- a/test/scanf/test_scanf.rb +++ b/test/scanf/test_scanf.rb @@ -269,7 +269,7 @@ module ScanfTests [ "%[[:upper:]]", "ABCdefGHI", [ "ABC" ] ], # Testing 'f' - [ "%2f", "x", [0.0] ], # width-floats match anything (by design) + [ "%2f", "x", [] ], [ "%F", "1.23e45", [1.23e+45] ], [ "%e", "3.25ee", [3.25] ], [ "%E", "3..25", [3.0] ], -- cgit v1.2.3