discovered and fixed a couple more broken tests
This commit is contained in:
parent
12eb6c6c08
commit
5cd967b26d
5 changed files with 5 additions and 5 deletions
|
@ -199,7 +199,7 @@ load_tests([Test|Rest], Dir, Acc) ->
|
|||
ParsedTest = parse_tests(TestSpec, Dir),
|
||||
load_tests(Rest, Dir, [ParsedTest] ++ Acc)
|
||||
; {error, _Reason} ->
|
||||
load_tests(Rest, Dir, Acc)
|
||||
erlang:error(Test)
|
||||
end.
|
||||
|
||||
|
||||
|
|
|
@ -630,7 +630,7 @@ low_surrogate(<<D/?utfx, Rest/binary>>, Stack, Opts, String, [C, B, A], H)
|
|||
string(Rest,
|
||||
Stack,
|
||||
Opts,
|
||||
<<String/binary, 16#fffd/utf8, 16#fffd/utf8>>
|
||||
[16#fffd, 16#fffd] ++ String
|
||||
)
|
||||
; false ->
|
||||
{error, {badjson, <<D/?utfx, Rest/binary>>}}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{name, "encoded_surrogates"}.
|
||||
{jsx, [start_array,{string,66560]},end_array,end_json]}.
|
||||
{jsx, [start_array,{string,[66560]},end_array,end_json]}.
|
||||
{json, "encoded_surrogates.json"}.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{name, "noncharacter replaced"}.
|
||||
{jsx, [{string,[16#fffd/utf8]},end_json]}.
|
||||
{jsx, [{string,[16#fffd]},end_json]}.
|
||||
{json, "noncharacter_replaced.json"}.
|
||||
{jsx_flags, [loose_unicode]}.
|
|
@ -1,4 +1,4 @@
|
|||
{name, "unpaired surrogate replaced"}.
|
||||
{jsx, [start_array,{string,16#fffd/utf8 ++ "blah"},end_array,end_json]}.
|
||||
{jsx, [start_array,{string,[65533,$b,$l,$a,$h]},end_array,end_json]}.
|
||||
{json, "unpaired_surrogate_replaced.json"}.
|
||||
{jsx_flags, [loose_unicode]}.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue