add test for bom in decoder
This commit is contained in:
parent
2e5bb4fd3b
commit
71767e4d28
1 changed files with 9 additions and 0 deletions
|
@ -1818,5 +1818,14 @@ ignored_bad_escapes_test_() ->
|
||||||
].
|
].
|
||||||
|
|
||||||
|
|
||||||
|
bom_test_() ->
|
||||||
|
[
|
||||||
|
{"bom", ?_assertEqual(
|
||||||
|
[start_array, end_array, end_json],
|
||||||
|
decode(<<16#ef, 16#bb, 16#bf, "[]"/utf8>>, [])
|
||||||
|
)}
|
||||||
|
].
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-endif.
|
-endif.
|
Loading…
Add table
Add a link
Reference in a new issue