summaryrefslogtreecommitdiffhomepage
path: root/test/t/string.rb
diff options
context:
space:
mode:
authoryui-knk <[email protected]>2014-05-09 23:40:41 +0900
committeryui-knk <[email protected]>2014-05-09 23:40:41 +0900
commitfaee6987464691436818e6f6b5757634ccbff98d (patch)
treecda4526687c861c4dfb8917ae04ba1e69b28914e /test/t/string.rb
parent64b30b65ee3f6787978dcd336e0c2490e290a3af (diff)
downloadmruby-faee6987464691436818e6f6b5757634ccbff98d.tar.gz
mruby-faee6987464691436818e6f6b5757634ccbff98d.zip
Refactoring test to use assert_nothing_raised.
Diffstat (limited to 'test/t/string.rb')
-rw-r--r--test/t/string.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/t/string.rb b/test/t/string.rb
index a2a020a79..5ecb51530 100644
--- a/test/t/string.rb
+++ b/test/t/string.rb
@@ -476,7 +476,11 @@ assert('String#upcase!', '15.2.10.5.43') do
end
assert('String#inspect', '15.2.10.5.46') do
- ("\1" * 100).inspect # should not raise an exception - regress #1210
+ # should not raise an exception - regress #1210
+ assert_nothing_raised do
+ ("\1" * 100).inspect
+ end
+
assert_equal "\"\\000\"", "\0".inspect
end