refactor options to complete mission: more pragmatism

This commit is contained in:
alisdair sullivan 2013-10-20 03:28:22 +00:00
parent 99484ce4f2
commit f340e8dc22
5 changed files with 229 additions and 183 deletions

View file

@ -78,7 +78,7 @@ err(Term, Opts) -> (jsx:parser(jsx, [], Opts))(Term).
error_test_() ->
[
{"value error", ?_assertError(badarg, err(self(), []))},
{"string error", ?_assertError(badarg, err(<<239, 191, 191>>, [strict_utf8]))}
{"string error", ?_assertError(badarg, err(<<239, 191, 191>>, [strict]))}
].
custom_error_handler_test_() ->
@ -90,7 +90,7 @@ custom_error_handler_test_() ->
)},
{"string error", ?_assertEqual(
{string, [{string, <<239, 191, 191>>}]},
err(<<239, 191, 191>>, [{error_handler, Error}, strict_utf8])
err(<<239, 191, 191>>, [{error_handler, Error}, strict])
)}
].