From 7e802706fe90b70aadf965bf0d51cc3464e15992 Mon Sep 17 00:00:00 2001 From: panasenco Date: Tue, 20 Apr 2021 17:26:38 -0700 Subject: [PATCH] Seem to be generating JSON correctly and at a good speed too! --- src/tests/json/pass_everything.json | 2 +- src/tests/json/pass_everything.min.json | 1 + src/tests/json/test_json.pl | 13 ++++++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 src/tests/json/pass_everything.min.json diff --git a/src/tests/json/pass_everything.json b/src/tests/json/pass_everything.json index 086b5562..35d7ea34 100644 --- a/src/tests/json/pass_everything.json +++ b/src/tests/json/pass_everything.json @@ -24,7 +24,7 @@ "ALPHA": "ABCDEFGHIJKLMNOPQRSTUVWYZ", "digit": "0123456789", "special": "`1~!@#$%^&*()_+-={':[,]}|;.?", - "hex": "\u0123\u4567\u89AB\uCDEF\uabcd\uef4A", + "hex": "\u0123\u4567\u89AB\u0001\uCDEF\uabcd\u001A\uef4A", "true": true, "false": false, "null": null, diff --git a/src/tests/json/pass_everything.min.json b/src/tests/json/pass_everything.min.json new file mode 100644 index 00000000..85cf7acb --- /dev/null +++ b/src/tests/json/pass_everything.min.json @@ -0,0 +1 @@ +["JSON Test Pattern pass1",{"object with 1 member":["array with 1 element"]},{},[],-42.0,true,false,null,{"":23456789011999997000000000000000000000000000000000000000000000000000000000000.0," s p a c e d ":[1.0,2.0,3.0,4.0,5.0,6.0,7.0],"# -- --> *\/":" ","\/\\\"쫾몾ꮘﳞ볚\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',.\/<>?":"A key can be any string","ALPHA":"ABCDEFGHIJKLMNOPQRSTUVWYZ","E":12345678900000000000000000000000000.0,"address":"50 St. James Street","alpha":"abcdefghijklmnopqrstuvwyz","array":[],"backslash":"\\","comment":"\/\/ \/*