diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-08-17 22:29:51 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-08-17 22:30:26 +0900 |
commit | 7b4b5e08409f1df2a99c00d40f4859b584cd1dd6 (patch) | |
tree | 60cb2a072ea76162e33b5a6312c4108f03df9a7d /test | |
parent | 0a218a97ad31f06eb7f59ccdd428fd46c4b93982 (diff) | |
download | ruby-7b4b5e08409f1df2a99c00d40f4859b584cd1dd6.tar.gz |
Fixed the radix for control chars
Diffstat (limited to 'test')
-rw-r--r-- | test/objspace/test_objspace.rb | 4 |
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)) |