fix format of incomplete tests in jsx_decoder
This commit is contained in:
parent
f6ebd9a1c4
commit
1909687aff
1 changed files with 3 additions and 3 deletions
|
@ -1635,16 +1635,16 @@ incomplete_test_() ->
|
||||||
[
|
[
|
||||||
{"stream false", ?_assertError(
|
{"stream false", ?_assertError(
|
||||||
badarg,
|
badarg,
|
||||||
start(<<"{">>, {jsx, []}, [], jsx_config:parse_config([]))
|
decode(<<"{">>)
|
||||||
)},
|
)},
|
||||||
{"stream true", ?_assert(
|
{"stream true", ?_assert(
|
||||||
case start(<<"{">>, {jsx, []}, [], jsx_config:parse_config([stream])) of
|
case decode(<<"{">>, [stream]) of
|
||||||
{incomplete, _} -> true;
|
{incomplete, _} -> true;
|
||||||
_ -> false
|
_ -> false
|
||||||
end
|
end
|
||||||
)},
|
)},
|
||||||
{"complete input", ?_assert(
|
{"complete input", ?_assert(
|
||||||
case start(<<"{}">>, {jsx, []}, [], jsx_config:parse_config([stream])) of
|
case decode(<<"{}">>, [stream]) of
|
||||||
{incomplete, _} -> true;
|
{incomplete, _} -> true;
|
||||||
_ -> false
|
_ -> false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue