discovered and fixed a couple more broken tests

This commit is contained in:
alisdair sullivan 2011-08-03 00:15:18 -07:00
parent 12eb6c6c08
commit 5cd967b26d
5 changed files with 5 additions and 5 deletions

View file

@ -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.

View file

@ -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>>}}