diff options
author | Urban Müller | 2013-05-13 16:32:16 +0000 |
---|---|---|
committer | Urban Müller | 2013-05-13 16:32:16 +0000 |
commit | 7e7595c5ea57b1711c1d1bed10324b78d6ac612d (patch) | |
tree | 7f5cbbb0b58cfd54cb0ec102615c1bbd2db859db /tests | |
parent | 14fb3893280168000605785c5352955d5579ee5e (diff) | |
download | itools-7e7595c5ea57b1711c1d1bed10324b78d6ac612d.tar.gz itools-7e7595c5ea57b1711c1d1bed10324b78d6ac612d.tar.bz2 itools-7e7595c5ea57b1711c1d1bed10324b78d6ac612d.zip |
test for grapheme_strlen===null for bad utf8
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/it.t | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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"); |