summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristian Schneider2019-03-12 17:57:48 +0100
committerChristian Schneider2019-03-12 17:57:48 +0100
commit4d1b92f1d4e9f2f80d04b452246399cb40bb543d (patch)
treeee37188099433141809bd98760194a07d689d546 /test
parent7cabc0bf2f7e3b3bf87f8f0247a7a2eae4ebfc7f (diff)
downloaditools-4d1b92f1d4e9f2f80d04b452246399cb40bb543d.tar.gz
itools-4d1b92f1d4e9f2f80d04b452246399cb40bb543d.tar.bz2
itools-4d1b92f1d4e9f2f80d04b452246399cb40bb543d.zip
Normalize to FORM_C in any2utf8
Diffstat (limited to 'test')
-rwxr-xr-xtest/it.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/it.t b/test/it.t
index fdaef6c..b624f96 100755
--- a/test/it.t
+++ b/test/it.t
@@ -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");