summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2013-05-13 16:32:16 +0000
committerUrban Müller2013-05-13 16:32:16 +0000
commit7e7595c5ea57b1711c1d1bed10324b78d6ac612d (patch)
tree7f5cbbb0b58cfd54cb0ec102615c1bbd2db859db
parent14fb3893280168000605785c5352955d5579ee5e (diff)
downloaditools-7e7595c5ea57b1711c1d1bed10324b78d6ac612d.tar.gz
itools-7e7595c5ea57b1711c1d1bed10324b78d6ac612d.tar.bz2
itools-7e7595c5ea57b1711c1d1bed10324b78d6ac612d.zip
test for grapheme_strlen===null for bad utf8
-rwxr-xr-xtests/it.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/it.t b/tests/it.t
index 6ad45bf..ffce004 100755
--- a/tests/it.t
+++ b/tests/it.t
@@ -355,6 +355,8 @@ is(it::ucwords('foo bär über'), 'Foo Bär Über');
is(it::substr_replace('abcdefgh', 'xyz', 2, 4), substr_replace('abcdefgh', 'xyz', 2, 4), 'it::substr_replace the same as substr_replace for ascii');
is(it::substr_replace('✔☯♥', '☃☃', 1, 1), '✔☃☃♥', 'it::substr_replace for utf-8');
+is(grapheme_strlen("\xc1"), null, "need grapheme_strlen side effect for any2utf8");
+
is(it::any2utf8('Meier'), 'Meier', "it::any2utf8 ascii input");
is(it::any2utf8('Müller'), 'Müller', "it::any2utf8 utf8 input");
is(it::any2utf8('Aslı'), 'Aslı', "it::any2utf8 utf8 non-latin1 input");