Commit 78f2d283 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2215 from yui-knk/fix-typo-test

Add ISO No. to String#inspect test.
parents a9488618 6932e9e1
......@@ -475,6 +475,11 @@ assert('String#upcase!', '15.2.10.5.43') do
assert_equal 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', b
end
assert('String#inspect', '15.2.10.5.46') do
("\1" * 100).inspect # should not raise an exception - regress #1210
assert_equal "\"\\000\"", "\0".inspect
end
# Not ISO specified
assert('String interpolation (mrb_str_concat for shared strings)') do
......@@ -506,8 +511,3 @@ assert('String#each_byte') do
assert_equal bytes1, bytes2
end
assert('String#inspect') do
("\1" * 100).inspect # should not raise an exception - regress #1210
assert_equal "\"\\000\"", "\0".inspect
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment