diff options
author | NARUSE, Yui <nurse@users.noreply.github.com> | 2020-07-31 11:06:58 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-31 11:06:58 +0900 |
commit | 8e081fb05c5054fa575dc9852ec1d599707376c9 (patch) | |
tree | 59914b3a3f83ca424174ba8ff9e211592d1e60d2 /tests/json_parser_test.rb | |
parent | e7cf232fa71b3a21094497d18c09ee7f24248bc3 (diff) | |
parent | 8a18cf6a14fc1fae54b3d581434a255c9d98ceea (diff) | |
download | json-8e081fb05c5054fa575dc9852ec1d599707376c9.tar.gz |
Merge pull request #405 from Shopify/escape-slash-2.3.0
Add an option to escape forward slash character
Diffstat (limited to 'tests/json_parser_test.rb')
-rw-r--r-- | tests/json_parser_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/json_parser_test.rb b/tests/json_parser_test.rb index 9946dd9..514441e 100644 --- a/tests/json_parser_test.rb +++ b/tests/json_parser_test.rb @@ -293,6 +293,10 @@ EOT json = '["\\\'"]' data = ["'"] assert_equal data, parse(json) + + json = '["\/"]' + data = [ '/' ] + assert_equal data, parse(json) end class SubArray < Array |