diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-09 12:00:25 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-09 12:00:25 +0900 |
| commit | 78f2d283a76ab4ea94405aa55f98cf1a3cc059b1 (patch) | |
| tree | fdfefebf9c2ca4b8ead113b367209a807ed5095d | |
| parent | a9488618ced0001f4f76480f3668ac00c996d446 (diff) | |
| parent | 6932e9e142023882e2c02ac168bd35691404bd29 (diff) | |
| download | mruby-78f2d283a76ab4ea94405aa55f98cf1a3cc059b1.tar.gz mruby-78f2d283a76ab4ea94405aa55f98cf1a3cc059b1.zip | |
Merge pull request #2215 from yui-knk/fix-typo-test
Add ISO No. to String#inspect test.
| -rw-r--r-- | test/t/string.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/t/string.rb b/test/t/string.rb index 04f90fb45..a2a020a79 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -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 |
