first tentative steps towards more comprehensive and flexible test suite
This commit is contained in:
parent
51cafcfb64
commit
ba42f75780
3 changed files with 31 additions and 18 deletions
|
@ -114,4 +114,16 @@ opts_test_() ->
|
|||
].
|
||||
|
||||
|
||||
valid_json_test_() ->
|
||||
Data = jsx:empty_array()
|
||||
++ jsx:empty_object(),
|
||||
[ {Title, ?_assertEqual(true, is_json(JSON, []))} || {Title, JSON, _, _} <- Data ].
|
||||
|
||||
|
||||
valid_term_test_() ->
|
||||
Data = jsx:empty_array()
|
||||
++ jsx:empty_object(),
|
||||
[ {Title, ?_assertEqual(true, is_term(Term, []))} || {Title, _, Term, _} <- Data ].
|
||||
|
||||
|
||||
-endif.
|
Loading…
Add table
Add a link
Reference in a new issue