add test for escaped strings and dirty strings interaction
This commit is contained in:
parent
8cf3a9d144
commit
a34b567ae4
1 changed files with 4 additions and 0 deletions
|
@ -1381,6 +1381,10 @@ clean_string_test_() ->
|
||||||
{"dirty 16#10ffff", ?_assertEqual(
|
{"dirty 16#10ffff", ?_assertEqual(
|
||||||
[{string, <<244, 143, 191, 191>>}, end_json],
|
[{string, <<244, 143, 191, 191>>}, end_json],
|
||||||
decode(<<34, 244, 143, 191, 191, 34>>, [dirty_strings])
|
decode(<<34, 244, 143, 191, 191, 34>>, [dirty_strings])
|
||||||
|
)},
|
||||||
|
{"dirty /", ?_assertEqual(
|
||||||
|
[{string, <<$/>>}, end_json],
|
||||||
|
decode(<<34, $/, 34>>, [dirty_strings, escaped_forward_slashes])
|
||||||
)}
|
)}
|
||||||
].
|
].
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue