summaryrefslogtreecommitdiff
path: root/test/json
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2020-06-30 01:10:49 -0400
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-25 17:28:42 +0900
commite30d1b0923d79dc55c8b47247cae9e5aa3007459 (patch)
tree1693669f2d09412382c62a5418d4e5b3f7ce66b9 /test/json
parent927a377a7c23733d94b7d9e103580c83e4040077 (diff)
Fix pure parser with unclosed arrays / objects [Fix #314]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3581
Diffstat (limited to 'test/json')
-rw-r--r--test/json/fixtures/fail29.json1
-rw-r--r--test/json/fixtures/fail30.json1
-rw-r--r--test/json/fixtures/fail31.json1
-rw-r--r--test/json/fixtures/fail32.json1
4 files changed, 4 insertions, 0 deletions
diff --git a/test/json/fixtures/fail29.json b/test/json/fixtures/fail29.json
new file mode 100644
index 0000000..98232c6
--- /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 0000000..558ed37
--- /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 0000000..70773e4
--- /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 0000000..b18d550
--- /dev/null
+++ b/test/json/fixtures/fail32.json
@@ -0,0 +1 @@
+{"foo": "bar"