summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUrban Müller2012-05-15 13:39:44 +0000
committerUrban Müller2012-05-15 13:39:44 +0000
commit14f9b743304695c729f4e5e7a5a36fbd4547de41 (patch)
tree573b0e75d098dc74ff40c882cb82378b69ed2971 /tests
parente2974f041d43b0ce99488027dd38187d606dd552 (diff)
downloaditools-14f9b743304695c729f4e5e7a5a36fbd4547de41.tar.gz
itools-14f9b743304695c729f4e5e7a5a36fbd4547de41.tar.bz2
itools-14f9b743304695c729f4e5e7a5a36fbd4547de41.zip
support arrays in any2utf8
Diffstat (limited to 'tests')
-rwxr-xr-xtests/it.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/it.t b/tests/it.t
index 68ea398..335c520 100755
--- a/tests/it.t
+++ b/tests/it.t
@@ -379,4 +379,6 @@ is(it::any2utf8(utf8_encode("Müller")), "Müller", "it::any2utf8 double encoded
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");
-?>
+is(it::any2utf8(array("foo", utf8_decode("bär"))), array("foo", "bär"), "any2utf8 on arrays");
+is(it::any2utf8(array("foo", array(utf8_decode("bär")))), array("foo", array("bär")), "any2utf8 on recursive arrays");
+is(it::any2utf8(array(1, true, false, null)), array(1, true, false, null), "any2utf8 should leave types alone");