first tentative steps towards more comprehensive and flexible test suite

This commit is contained in:
alisdair sullivan 2013-02-06 22:28:26 -08:00
parent 51cafcfb64
commit ba42f75780
3 changed files with 31 additions and 18 deletions

View file

@ -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.