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(
|
||||
badarg,
|
||||
start(<<"{">>, {jsx, []}, [], jsx_config:parse_config([]))
|
||||
decode(<<"{">>)
|
||||
)},
|
||||
{"stream true", ?_assert(
|
||||
case start(<<"{">>, {jsx, []}, [], jsx_config:parse_config([stream])) of
|
||||
case decode(<<"{">>, [stream]) of
|
||||
{incomplete, _} -> true;
|
||||
_ -> false
|
||||
end
|
||||
)},
|
||||
{"complete input", ?_assert(
|
||||
case start(<<"{}">>, {jsx, []}, [], jsx_config:parse_config([stream])) of
|
||||
case decode(<<"{}">>, [stream]) of
|
||||
{incomplete, _} -> true;
|
||||
_ -> false
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue