summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUrban Müller2013-01-31 18:24:31 +0000
committerUrban Müller2013-01-31 18:24:31 +0000
commit796f9d6690e3f2ff0dc01ab113529143e137fbe1 (patch)
tree9d50b83e2098f3f2f0641266aa00309cb5441d83 /tests
parentca62110b9ec5e7f5157aa34dd0fc48b2c3f24a73 (diff)
downloaditools-796f9d6690e3f2ff0dc01ab113529143e137fbe1.tar.gz
itools-796f9d6690e3f2ff0dc01ab113529143e137fbe1.tar.bz2
itools-796f9d6690e3f2ff0dc01ab113529143e137fbe1.zip
it::serialize must quote ' in keys
Diffstat (limited to 'tests')
-rwxr-xr-xtests/itjs.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/itjs.t b/tests/itjs.t
index f616ced..4fcc9b4 100755
--- a/tests/itjs.t
+++ b/tests/itjs.t
@@ -47,4 +47,8 @@ is(
'keywords'
);
-?>
+is(
+ itjs::serialize(array("foo'foo" => "bar")),
+ "{'foo\'foo':\"bar\"}",
+ "quote ' in keys",
+);