From 3dabbbd5325c9fad9582cd44b1da68dece78eaa0 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 21 Jun 2018 16:42:32 +0200 Subject: no reason for different naming --- tests/itjs.t | 66 ------------------------------------------------------------ 1 file changed, 66 deletions(-) delete mode 100755 tests/itjs.t (limited to 'tests/itjs.t') diff --git a/tests/itjs.t b/tests/itjs.t deleted file mode 100755 index 695ccd8..0000000 --- a/tests/itjs.t +++ /dev/null @@ -1,66 +0,0 @@ -#!/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' -); - -is( - itjs::serialize(array('import' => array('function' => array(true, 42)))), - '{\'import\':{\'function\':[true, 42]}}', - 'keywords' -); - -is( - itjs::serialize(array("foo'foo" => "bar")), - "{'foo\'foo':\"bar\"}", - "quote ' in keys" -); - -is( - itjs::serialize("hellö"), - '"hellö"', - "string" -); -- cgit v1.2.3