diff options
author | Nathan Gass | 2012-03-22 18:19:43 +0000 |
---|---|---|
committer | Nathan Gass | 2012-03-22 18:19:43 +0000 |
commit | 1336ce6ac3baacd1cecbf776cfafa81f8d025272 (patch) | |
tree | 3924b3e2e12a5d5ea3b40890477d5e070498543c /devel-utf8/tests/itjs.t | |
parent | d59a4921188753dbe4c0161081755a28112c3ef6 (diff) | |
download | itools-1336ce6ac3baacd1cecbf776cfafa81f8d025272.tar.gz itools-1336ce6ac3baacd1cecbf776cfafa81f8d025272.tar.bz2 itools-1336ce6ac3baacd1cecbf776cfafa81f8d025272.zip |
Wrong branch itools/live/devel-utf8 removed
Diffstat (limited to 'devel-utf8/tests/itjs.t')
-rwxr-xr-x | devel-utf8/tests/itjs.t | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/devel-utf8/tests/itjs.t b/devel-utf8/tests/itjs.t deleted file mode 100755 index f616ced..0000000 --- a/devel-utf8/tests/itjs.t +++ /dev/null @@ -1,50 +0,0 @@ -#!/www/server/bin/php -qC -<?php - -# Tests for itjs.class, currently only itjs::serialize() - -$_GET['aa'] = 1; - -is( - itjs::serialize(array()), - '[]', - 'empty array' -); - -is( - itjs::serialize(array(0, "0")), - '[0, 0]', - 'number 0' -); - -is( - itjs::serialize(array(null, "", false)), - '["", "", false]', - 'null, empty string, false' -); - -is( - itjs::serialize(array(42, "42", 42.5, "042")), - '[42, 42, "42.5", "042"]', - 'numbers' -); - -is( - itjs::serialize(array('foo' => "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' -); - -is( - itjs::serialize(array('import' => array('function' => array(true, 42)))), - '{\'import\':{\'function\':[true, 42]}}', - 'keywords' -); - -?> |