mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
Also escape DEL code
This commit is contained in:
parent
7b4b5e0840
commit
27f7b047e0
2 changed files with 4 additions and 0 deletions
|
@ -277,6 +277,7 @@ class TestObjSpace < Test::Unit::TestCase
|
|||
|
||||
def test_dump_control_char
|
||||
assert_include(ObjectSpace.dump("\x0f"), '"value":"\u000f"')
|
||||
assert_include(ObjectSpace.dump("\C-?"), '"value":"\u007f"')
|
||||
end
|
||||
|
||||
def test_dump_special_consts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue