allow unicode noncharacters and reserved space characters in json

strings

fixes #67
This commit is contained in:
alisdair sullivan 2014-12-01 09:20:17 +00:00
parent 5f5e85914d
commit 9528216d15
5 changed files with 30 additions and 191 deletions

View file

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