Changeset: 0c1275a98ea3 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0c1275a98ea3 Modified Files: sql/test/json/Tests/All sql/test/json/Tests/jsonvalidity.Bug-3753.sql Branch: json Log Message:
Update JSON validity test with edge case The string "01" does not represent a valid JSON object. For more details see https://nullprogram.com/blog/2019/12/28/ diffs (19 lines): diff --git a/sql/test/json/Tests/All b/sql/test/json/Tests/All --- a/sql/test/json/Tests/All +++ b/sql/test/json/Tests/All @@ -12,4 +12,4 @@ load aggregate00 aggregate01 shop -jsonvalidity.Bug-3753 +KNOWNFAIL?jsonvalidity.Bug-3753 diff --git a/sql/test/json/Tests/jsonvalidity.Bug-3753.sql b/sql/test/json/Tests/jsonvalidity.Bug-3753.sql --- a/sql/test/json/Tests/jsonvalidity.Bug-3753.sql +++ b/sql/test/json/Tests/jsonvalidity.Bug-3753.sql @@ -28,3 +28,6 @@ SELECT json.isValid('{"test":""""}'); - SELECT json.isValid(E'{"test":"\\"\\""}'); -- true SELECT json.isValid(R'"\u003c\""'); -- true + +SELECT json.isValid(R'01'); -- false +SELECT json.isValid(R'[01]'); -- false _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list