From e30d1b0923d79dc55c8b47247cae9e5aa3007459 Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune Date: Tue, 30 Jun 2020 01:10:49 -0400 Subject: Fix pure parser with unclosed arrays / objects [Fix #314] --- test/json/fixtures/fail29.json | 1 + test/json/fixtures/fail30.json | 1 + test/json/fixtures/fail31.json | 1 + test/json/fixtures/fail32.json | 1 + 4 files changed, 4 insertions(+) create mode 100644 test/json/fixtures/fail29.json create mode 100644 test/json/fixtures/fail30.json create mode 100644 test/json/fixtures/fail31.json create mode 100644 test/json/fixtures/fail32.json (limited to 'test/json') diff --git a/test/json/fixtures/fail29.json b/test/json/fixtures/fail29.json new file mode 100644 index 0000000000..98232c64fc --- /dev/null +++ b/test/json/fixtures/fail29.json @@ -0,0 +1 @@ +{ diff --git a/test/json/fixtures/fail30.json b/test/json/fixtures/fail30.json new file mode 100644 index 0000000000..558ed37d93 --- /dev/null +++ b/test/json/fixtures/fail30.json @@ -0,0 +1 @@ +[ diff --git a/test/json/fixtures/fail31.json b/test/json/fixtures/fail31.json new file mode 100644 index 0000000000..70773e47f7 --- /dev/null +++ b/test/json/fixtures/fail31.json @@ -0,0 +1 @@ +[1, 2, 3, diff --git a/test/json/fixtures/fail32.json b/test/json/fixtures/fail32.json new file mode 100644 index 0000000000..b18d550ca5 --- /dev/null +++ b/test/json/fixtures/fail32.json @@ -0,0 +1 @@ +{"foo": "bar" -- cgit v1.2.1