replace <<16#ffff/utf8>> with <<239, 191, 191>> to allow certain tests to run on R14x
This commit is contained in:
parent
f186d0bd9c
commit
267977bf6e
2 changed files with 6 additions and 6 deletions
|
@ -286,7 +286,7 @@ pre_encoders_test_() ->
|
||||||
error_test_() ->
|
error_test_() ->
|
||||||
[
|
[
|
||||||
{"value error", ?_assertError(badarg, encode(self(), []))},
|
{"value error", ?_assertError(badarg, encode(self(), []))},
|
||||||
{"string error", ?_assertError(badarg, encode(<<16#ffff/utf8>>, []))}
|
{"string error", ?_assertError(badarg, encode(<<239, 191, 191>>, []))}
|
||||||
].
|
].
|
||||||
|
|
||||||
custom_error_handler_test_() ->
|
custom_error_handler_test_() ->
|
||||||
|
@ -297,8 +297,8 @@ custom_error_handler_test_() ->
|
||||||
encode(self(), [{error_handler, Error}])
|
encode(self(), [{error_handler, Error}])
|
||||||
)},
|
)},
|
||||||
{"string error", ?_assertEqual(
|
{"string error", ?_assertEqual(
|
||||||
{string, <<16#ffff/utf8>>},
|
{string, <<239, 191, 191>>},
|
||||||
encode(<<16#ffff/utf8>>, [{error_handler, Error}])
|
encode(<<239, 191, 191>>, [{error_handler, Error}])
|
||||||
)}
|
)}
|
||||||
].
|
].
|
||||||
|
|
||||||
|
|
|
@ -214,7 +214,7 @@ error_test_() ->
|
||||||
{"value error", ?_assertError(badarg, parse([self()], []))},
|
{"value error", ?_assertError(badarg, parse([self()], []))},
|
||||||
{"maybe_done error", ?_assertError(badarg, parse([start_array, end_array, start_array, end_json], []))},
|
{"maybe_done error", ?_assertError(badarg, parse([start_array, end_array, start_array, end_json], []))},
|
||||||
{"done error", ?_assertError(badarg, parse([{string, <<"">>}, {literal, true}, end_json], []))},
|
{"done error", ?_assertError(badarg, parse([{string, <<"">>}, {literal, true}, end_json], []))},
|
||||||
{"string error", ?_assertError(badarg, parse([{string, <<16#ffff/utf8>>}, end_json], []))}
|
{"string error", ?_assertError(badarg, parse([{string, <<239, 191, 191>>}, end_json], []))}
|
||||||
].
|
].
|
||||||
|
|
||||||
|
|
||||||
|
@ -234,8 +234,8 @@ custom_error_handler_test_() ->
|
||||||
parse([{string, <<"">>}, {literal, true}, end_json], [{error_handler, Error}])
|
parse([{string, <<"">>}, {literal, true}, end_json], [{error_handler, Error}])
|
||||||
)},
|
)},
|
||||||
{"string error", ?_assertEqual(
|
{"string error", ?_assertEqual(
|
||||||
{string, [{string, <<16#ffff/utf8>>}, end_json]},
|
{string, [{string, <<239, 191, 191>>}, end_json]},
|
||||||
parse([{string, <<16#ffff/utf8>>}, end_json], [{error_handler, Error}])
|
parse([{string, <<239, 191, 191>>}, end_json], [{error_handler, Error}])
|
||||||
)}
|
)}
|
||||||
].
|
].
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue