break special decodeable forms out to own test data
This commit is contained in:
parent
086803cc95
commit
e6380bc3a3
4 changed files with 69 additions and 13 deletions
|
@ -265,4 +265,27 @@ post_decoders_test_() ->
|
|||
)}
|
||||
].
|
||||
|
||||
|
||||
handle_event_test_() ->
|
||||
Data = jsx:empty_array()
|
||||
++ jsx:deep_array()
|
||||
++ jsx:really_deep_array()
|
||||
++ jsx:empty_object()
|
||||
++ jsx:literals()
|
||||
++ jsx:naked_literals()
|
||||
++ jsx:integers()
|
||||
++ jsx:naked_integers()
|
||||
++ jsx:floats()
|
||||
++ jsx:naked_floats()
|
||||
++ jsx:decodeables(),
|
||||
[
|
||||
{
|
||||
Title, ?_assertEqual(
|
||||
Term,
|
||||
lists:foldl(fun handle_event/2, {[[]], #opts{}}, Events ++ [end_json])
|
||||
)
|
||||
} || {Title, _, Term, Events} <- Data
|
||||
].
|
||||
|
||||
|
||||
-endif.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue