summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian A. Weber2016-07-16 23:17:44 +0200
committerChristian A. Weber2016-07-16 23:17:44 +0200
commita406864c30fcbb3c462b99f91c03dd1d9b30545f (patch)
treec3f54124687f9212c68f2445ead73f86815f699f /tests
parentaec4634e59713e125fa6e5ee2826ab5546db7446 (diff)
downloaditools-a406864c30fcbb3c462b99f91c03dd1d9b30545f.tar.gz
itools-a406864c30fcbb3c462b99f91c03dd1d9b30545f.tar.bz2
itools-a406864c30fcbb3c462b99f91c03dd1d9b30545f.zip
itjs::encode() can encode non-arrays
Diffstat (limited to 'tests')
-rwxr-xr-xtests/itjs.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/itjs.t b/tests/itjs.t
index fce81ee..695ccd8 100755
--- a/tests/itjs.t
+++ b/tests/itjs.t
@@ -58,3 +58,9 @@ is(
"{'foo\'foo':\"bar\"}",
"quote ' in keys"
);
+
+is(
+ itjs::serialize("hellö"),
+ '"hellö"',
+ "string"
+);