summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-02-12 10:29:24 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-02-12 22:56:24 +0900
commit1d5526042394630a1c69b0d2169fa02cce36c20a (patch)
tree93a6f86207870a2ba0ed2e29b3f078919486cf05 /test
parentb9523d0e06149dd0747250dcc344bdc2feb3ef4b (diff)
downloadmruby-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.rb2
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