mirror of
https://github.com/ruby/ruby.git
synced 2025-08-27 06:56:13 +02:00
Improve error message
ref [Bug #13761] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
84d83482c8
commit
d9d2bbe4b9
2 changed files with 3 additions and 3 deletions
|
@ -425,11 +425,11 @@ class TestSprintf < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_percent_sign_at_end
|
||||
assert_raise_with_message(ArgumentError, "incomplete format specifier") do
|
||||
assert_raise_with_message(ArgumentError, "incomplete format specifier; use %% (double %) instead") do
|
||||
sprintf("%")
|
||||
end
|
||||
|
||||
assert_raise_with_message(ArgumentError, "incomplete format specifier") do
|
||||
assert_raise_with_message(ArgumentError, "incomplete format specifier; use %% (double %) instead") do
|
||||
sprintf("abc%")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue