summaryrefslogtreecommitdiff
path: root/test/it.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/it.t')
-rwxr-xr-xtest/it.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/it.t b/test/it.t
index fcc68e7..fdaef6c 100755
--- a/test/it.t
+++ b/test/it.t
@@ -426,6 +426,9 @@ foreach ([ 'a' => 'ä', 'e' => 'ë', 'i' => 'ï', 'o' => 'ö', 'u' => 'ü' ] as
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");
+is(it::json_decode('{"foo":"bar"}', ['assoc' => true])['foo'], "bar");
+
is(it::sort(array("2!","19!","1!")), array("1!", "19!", "2!"));
is(it::sort(array("2!","19!","1!"), "r"), array("2!", "19!", "1!"));