diff options
author | Christian Schneider | 2019-03-12 17:57:48 +0100 |
---|---|---|
committer | Christian Schneider | 2019-03-12 17:57:48 +0100 |
commit | 4d1b92f1d4e9f2f80d04b452246399cb40bb543d (patch) | |
tree | ee37188099433141809bd98760194a07d689d546 /test | |
parent | 7cabc0bf2f7e3b3bf87f8f0247a7a2eae4ebfc7f (diff) | |
download | itools-4d1b92f1d4e9f2f80d04b452246399cb40bb543d.tar.gz itools-4d1b92f1d4e9f2f80d04b452246399cb40bb543d.tar.bz2 itools-4d1b92f1d4e9f2f80d04b452246399cb40bb543d.zip |
Normalize to FORM_C in any2utf8
Diffstat (limited to 'test')
-rwxr-xr-x | test/it.t | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -424,6 +424,8 @@ foreach ([ 'a' => 'ä', 'e' => 'ë', 'i' => 'ï', 'o' => 'ö', 'u' => 'ü' ] as is(it::any2utf8("$src\xcc\x88"), $dst, "it::any2utf8 normalize combining diaeresis $dst to umlaut code $dst"); } +is(it::any2utf8("\x65\xcc\x81"), "é", "it::any2utf8 convert to normal form C"); + foreach (array($dummy, false, true, null, 1, "a", "Ä", "/", array()) as $var) is(it::json_decode(it::json_encode($var)), $var); is(it::json_decode('{"foo":"bar"}')->foo, "bar"); |