removed the default callback handler, replaced it with an anonymous function. also added a shortcut for a decoder with the default handler but custom opts
This commit is contained in:
parent
80112bce4a
commit
7d5ccfd86f
4 changed files with 7 additions and 148 deletions
|
@ -53,7 +53,7 @@ test_body(TestSpec, Dir) ->
|
|||
[{TestName, ?_assertEqual(incremental_decode(Decoder, JSON), Events)}] ++
|
||||
[{TestName, ?_assertEqual(decode(Decoder, JSON), Events)}]
|
||||
; {ok, [Events, Flags]} ->
|
||||
Decoder = jsx:decoder({none, []}, Flags),
|
||||
Decoder = jsx:decoder(Flags),
|
||||
[{TestName, ?_assertEqual(incremental_decode(Decoder, JSON), Events)}] ++
|
||||
[{TestName, ?_assertEqual(decode(Decoder, JSON), Events)}]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue