From: panasenco Date: Wed, 21 Apr 2021 00:26:38 +0000 (-0700) Subject: Seem to be generating JSON correctly and at a good speed too! X-Git-Tag: v0.9.0~99^2~2 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=7e802706fe90b70aadf965bf0d51cc3464e15992;p=scryer-prolog.git Seem to be generating JSON correctly and at a good speed too! --- 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":"\/\/ \/*