summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2020-06-30 01:10:49 -0400
committerMarc-Andre Lafortune <github@marc-andre.ca>2020-06-30 01:10:49 -0400
commit5b4f1baef055d2a7be58cdfe7329b1b2f5b748c9 (patch)
tree6e4fe58a191fe299f728ff13d20c2388ce68051a /tests
parentb20cdca8eb03297132bcf3b786eba602fa04ca37 (diff)
downloadjson-5b4f1baef055d2a7be58cdfe7329b1b2f5b748c9.tar.gz
Fix pure parser with unclosed arrays / objects [Fix #314]
Diffstat (limited to 'tests')
-rw-r--r--tests/fixtures/fail29.json1
-rw-r--r--tests/fixtures/fail30.json1
-rw-r--r--tests/fixtures/fail31.json1
-rw-r--r--tests/fixtures/fail32.json1
4 files changed, 4 insertions, 0 deletions
diff --git a/tests/fixtures/fail29.json b/tests/fixtures/fail29.json
new file mode 100644
index 0000000..98232c6
--- /dev/null
+++ b/tests/fixtures/fail29.json
@@ -0,0 +1 @@
+{
diff --git a/tests/fixtures/fail30.json b/tests/fixtures/fail30.json
new file mode 100644
index 0000000..558ed37
--- /dev/null
+++ b/tests/fixtures/fail30.json
@@ -0,0 +1 @@
+[
diff --git a/tests/fixtures/fail31.json b/tests/fixtures/fail31.json
new file mode 100644
index 0000000..70773e4
--- /dev/null
+++ b/tests/fixtures/fail31.json
@@ -0,0 +1 @@
+[1, 2, 3,
diff --git a/tests/fixtures/fail32.json b/tests/fixtures/fail32.json
new file mode 100644
index 0000000..b18d550
--- /dev/null
+++ b/tests/fixtures/fail32.json
@@ -0,0 +1 @@
+{"foo": "bar"