diff options
author | Zandra Hird <[email protected]> | 2015-05-11 15:07:39 +0200 |
---|---|---|
committer | Zandra Hird <[email protected]> | 2015-05-11 15:07:39 +0200 |
commit | 0fad26858f4e952d25ef5372dda634587ad77b57 (patch) | |
tree | 37bb39c15e7f74d1df97eb12a065d1456d5ea483 /lib/eunit/test/tlatin.erl | |
parent | 1f9201ca7db28e19e92c094b0317230ee930829c (diff) | |
parent | 65d41cb6c514308ab11645dc2d0842d4f6b629a4 (diff) | |
download | otp-0fad26858f4e952d25ef5372dda634587ad77b57.tar.gz otp-0fad26858f4e952d25ef5372dda634587ad77b57.tar.bz2 otp-0fad26858f4e952d25ef5372dda634587ad77b57.zip |
Merge branch 'vladdu/eunit_unicode_OTP11660'
* vladdu/eunit_unicode_OTP11660:
OTP-11660: make eunit unicode safe
Diffstat (limited to 'lib/eunit/test/tlatin.erl')
-rw-r--r-- | lib/eunit/test/tlatin.erl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/eunit/test/tlatin.erl b/lib/eunit/test/tlatin.erl new file mode 100644 index 0000000000..a42e67d581 --- /dev/null +++ b/lib/eunit/test/tlatin.erl @@ -0,0 +1,15 @@ +% coding: latin-1 + +-module(tlatin). + +-include_lib("eunit/include/eunit.hrl"). + +'foo_�_test_'() -> + [ + {"1�1", fun() -> io:format("1�1 ~s ~w",[<<"a�">>, 'Z�k']), io:format([128,64,255,255]), ?assert("g�"=="g�") end} + ,{<<"2�2">>, fun() -> io:format("2�2 ~s",[<<"b�">>]), io:format([128,64]), ?assert("g�"=="g�") end} + ,{<<"3�3"/utf8>>, fun() -> io:format("3�3 ~ts",[<<"c�"/utf8>>]), io:format([128,64]), ?assert("g�"=="g�") end} + ,{"1�1", fun() -> io:format("1�1 ~s ~w",[<<"a�">>,'Zb�d']), io:format([128,64,255,255]), ?assert("w�"=="w�") end} + ,{<<"2�2">>, fun() -> io:format("2�2 ~s",[<<"b�">>]), io:format([128,64]), ?assert("w�"=="w�") end} + ,{<<"3�3"/utf8>>, fun() -> io:format("3�3 ~ts",[<<"c�"/utf8>>]), io:format([128,64]), ?assert("w�"=="w�") end} + ]. |