1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_sprintf.rb (test_invalid): suppress warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-12-28 09:51:18 +00:00
parent ca65828014
commit 08b4f9138c

View file

@ -179,7 +179,10 @@ class TestSprintf < Test::Unit::TestCase
assert_raise(ArgumentError) { sprintf("%!", 1) }
assert_raise(ArgumentError) { sprintf("%1$1$d", 1) }
assert_raise(ArgumentError) { sprintf("%0%") }
verbose, $VERBOSE = $VERBOSE, nil
assert_nothing_raised { sprintf("", 1) }
ensure
$VERBOSE = verbose
end
def test_float