diff options
Diffstat (limited to 't/e00_func.t')
-rw-r--r-- | t/e00_func.t | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/t/e00_func.t b/t/e00_func.t new file mode 100644 index 0000000..ddb57ce --- /dev/null +++ b/t/e00_func.t @@ -0,0 +1,17 @@ +
+use Test::More;
+use strict;
+BEGIN { plan tests => 2 };
+BEGIN { $ENV{PERL_JSON_BACKEND} = "JSON::backportPP"; }
+use JSON;
+#########################
+
+my $json = JSON->new;
+
+my $js = 'abc';
+
+
+is(to_json($js, {allow_nonref => 1}), '"abc"');
+
+is(from_json('"abc"', {allow_nonref => 1}), 'abc');
+
|