summaryrefslogtreecommitdiff
path: root/test/objspace
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-08-17 22:29:51 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-08-17 22:30:26 +0900
commit7b4b5e08409f1df2a99c00d40f4859b584cd1dd6 (patch)
tree60cb2a072ea76162e33b5a6312c4108f03df9a7d /test/objspace
parent0a218a97ad31f06eb7f59ccdd428fd46c4b93982 (diff)
Fixed the radix for control chars
Diffstat (limited to 'test/objspace')
-rw-r--r--test/objspace/test_objspace.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb
index a2242639c7..9d05a4c0f3 100644
--- a/test/objspace/test_objspace.rb
+++ b/test/objspace/test_objspace.rb
@@ -275,6 +275,10 @@ class TestObjSpace < Test::Unit::TestCase
JSON.parse(info) if defined?(JSON)
end
+ def test_dump_control_char
+ assert_include(ObjectSpace.dump("\x0f"), '"value":"\u000f"')
+ end
+
def test_dump_special_consts
# [ruby-core:69692] [Bug #11291]
assert_equal('null', ObjectSpace.dump(nil))