summaryrefslogtreecommitdiff
path: root/tests/it.t
diff options
context:
space:
mode:
authorUrban Müller2012-05-23 17:01:01 +0000
committerUrban Müller2012-05-23 17:01:01 +0000
commit9e6fae7fe16c4b73f1b8a63d602d2f47f9b9d74e (patch)
treea65216c52fb44ea271e6a5f8d46eb728207ae7b1 /tests/it.t
parentc5bad6e1c65bd27c56baf5ab8c4955deb260f429 (diff)
downloaditools-9e6fae7fe16c4b73f1b8a63d602d2f47f9b9d74e.tar.gz
itools-9e6fae7fe16c4b73f1b8a63d602d2f47f9b9d74e.tar.bz2
itools-9e6fae7fe16c4b73f1b8a63d602d2f47f9b9d74e.zip
any2utf8 triple encoding test
Diffstat (limited to 'tests/it.t')
-rwxr-xr-xtests/it.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/it.t b/tests/it.t
index 335c520..6ad45bf 100755
--- a/tests/it.t
+++ b/tests/it.t
@@ -375,7 +375,8 @@ is(it::any2utf8("Meier"), "Meier", "it::any2utf8 ascii");
is(it::any2utf8("Müller"), "Müller", "it::any2utf8 utf-8 latin1");
is(it::any2utf8("Aslı"), "Aslı", "it::any2utf8 utf-8 non-latin1");
is(it::any2utf8("é»"), "é»", "it::any2utf8 utf-8 latin1 special combination");
-is(it::any2utf8(utf8_encode("Müller")), "Müller", "it::any2utf8 double encoded latin1");
+is(it::any2utf8(utf8_encode("Müller")), "Müller", "it::any2utf8 doubly encoded utf8");
+is(it::any2utf8(utf8_encode(utf8_encode("Müller"))), "Müller", "it::any2utf8 triply encoded utf8");
is(it::any2utf8(utf8_decode("Müller")), "Müller", "it::any2utf8 incorrectly encoded latin1");
is(it::any2utf8("a💚b"), "a💚b", "it::any2utf8 correctly handles 4-byte utf-8 character GREEN HEART");