From 6943a9f3bc10a60fcc01f126dfbd22b24b9c99cb Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 8 Feb 2007 14:51:25 +0000 Subject: Moved ITools tests from searchlib to itools/live --- tests/itjs.t | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 tests/itjs.t (limited to 'tests/itjs.t') diff --git a/tests/itjs.t b/tests/itjs.t new file mode 100755 index 0000000..8cbf90c --- /dev/null +++ b/tests/itjs.t @@ -0,0 +1,46 @@ +#!/www/server/bin/php -qC + "bar", "qux", 42 => "quux")), + "{foo:\"bar\",\n'0':\"qux\",\n'42':\"quux\"}", + 'key-value pairs' +); + +is( + itjs::serialize(array('foo' => array('bar' => array("qux", 42)))), + '{foo:{bar:["qux", 42]}}', + 'nested arrays' +); + +?> -- cgit v1.2.3