Skip to content

Commit

Permalink
make the tests compatible with R16B
Browse files Browse the repository at this point in the history
Encoding of source files in R17+ is utf8 by default, in R16 ascii, so utf8 strings removed from the tests altogether for compatiblity.
  • Loading branch information
brigadier authored Oct 10, 2016
1 parent 362c270 commit aa578ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/eini_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -582,14 +582,14 @@ unicode_test_() ->
fun teardown/1,
[
?_assertEqual({ok, [
{title, [{key1, <<"юникод"/utf8>>}]}
{title, [{key1, <<"\xD1\x8E\xD0\xBD\xD0\xB8\xD0\xBA\xD0\xBE\xD0\xB4">>}]}
]},
parse(
"[title]\n"
"key1= \xD1\x8E\xD0\xBD\xD0\xB8\xD0\xBA\xD0\xBE\xD0\xB4 \n"
)),
?_assertEqual({ok, [
{title, [{key1, <<"юникод"/utf8>>}]}
{title, [{key1, <<"\xD1\x8E\xD0\xBD\xD0\xB8\xD0\xBA\xD0\xBE\xD0\xB4">>}]}
]},
parse(
<<91,116,105,116,108,101,93,10,107,101,121,49,61,209,142,208,189,208,184,208,186,208,190,208,180,10>>
Expand Down

0 comments on commit aa578ae

Please sign in to comment.