prevent json objects with repeated keys from being emitted from the

parser
This commit is contained in:
alisdair sullivan 2014-06-15 22:12:07 +00:00
parent 4df8e5092a
commit 4ad9c38cb9
3 changed files with 98 additions and 77 deletions

View file

@ -103,7 +103,7 @@ custom_error_handler_test_() ->
parser(self(), [{error_handler, Error}])
)},
{"string error", ?_assertEqual(
{string, [{string, <<239, 191, 191>>}]},
{value, [{string, <<239, 191, 191>>}]},
parser(<<239, 191, 191>>, [{error_handler, Error}, strict])
)}
].