Index: third_party/JSON/JSON-2.59/t/e00_func.t |
diff --git a/third_party/JSON/JSON-2.59/t/e00_func.t b/third_party/JSON/JSON-2.59/t/e00_func.t |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ddb57ce15bffa420aef9b30e2142067f48cd2458 |
--- /dev/null |
+++ b/third_party/JSON/JSON-2.59/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'); |
+ |