replace <<16#ffff/utf8>> with <<239, 191, 191>> to allow certain tests to run on R14x

This commit is contained in:
alisdair sullivan 2013-03-05 16:36:49 -08:00
parent f186d0bd9c
commit 267977bf6e
2 changed files with 6 additions and 6 deletions

View file

@ -286,7 +286,7 @@ pre_encoders_test_() ->
error_test_() ->
[
{"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_() ->
@ -297,8 +297,8 @@ custom_error_handler_test_() ->
encode(self(), [{error_handler, Error}])
)},
{"string error", ?_assertEqual(
{string, <<16#ffff/utf8>>},
encode(<<16#ffff/utf8>>, [{error_handler, Error}])
{string, <<239, 191, 191>>},
encode(<<239, 191, 191>>, [{error_handler, Error}])
)}
].