diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-02-12 10:29:24 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-02-12 22:56:24 +0900 |
| commit | 1d5526042394630a1c69b0d2169fa02cce36c20a (patch) | |
| tree | 93a6f86207870a2ba0ed2e29b3f078919486cf05 /test | |
| parent | b9523d0e06149dd0747250dcc344bdc2feb3ef4b (diff) | |
| download | mruby-1d5526042394630a1c69b0d2169fa02cce36c20a.tar.gz mruby-1d5526042394630a1c69b0d2169fa02cce36c20a.zip | |
`String#inspect` to use hexadecimal, not octal to print unprintable.
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/string.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/t/string.rb b/test/t/string.rb index 6351d5d98..a1277ce99 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -685,7 +685,7 @@ assert('String#inspect', '15.2.10.5.46') do ("\1" * 100).inspect end - assert_equal "\"\\000\"", "\0".inspect + assert_equal "\"\\x00\"", "\0".inspect end # Not ISO specified |
