diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-31 03:35:22 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-31 03:35:22 +0000 |
commit | d9d2bbe4b92120003cc026176a3841c875378e7c (patch) | |
tree | 926e662503880ee3b9ea1c5afe50e4967eb3102d /test/ruby | |
parent | 84d83482c8ba1b8e7002ed8ff4c6a2c00fa4ce62 (diff) | |
download | ruby-d9d2bbe4b92120003cc026176a3841c875378e7c.tar.gz |
Improve error message
ref [Bug #13761]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_sprintf.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_sprintf.rb b/test/ruby/test_sprintf.rb index df004305ec..b46f5189e2 100644 --- a/test/ruby/test_sprintf.rb +++ b/test/ruby/test_sprintf.rb @@ -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 |