From a406864c30fcbb3c462b99f91c03dd1d9b30545f Mon Sep 17 00:00:00 2001 From: Christian A. Weber Date: Sat, 16 Jul 2016 23:17:44 +0200 Subject: itjs::encode() can encode non-arrays --- tests/itjs.t | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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" +); -- cgit v1.2.3