summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTimothy J. Wood <tjw@omnigroup.com>2009-02-26 13:28:07 -0800
committerTimothy J. Wood <tjw@omnigroup.com>2009-02-26 13:28:07 -0800
commitd4d5f5af2cc52d7b8c92fc2a57f18e38d1f6f5d2 (patch)
tree00f81d0dfd0d9d561e1c150cacb002149c7a90d1 /test
parent939e9d60903933b0ac9bf57f03fd575fd38e57fb (diff)
downloadyajl-d4d5f5af2cc52d7b8c92fc2a57f18e38d1f6f5d2.tar.gz
Tests of unbalanced structure; these work and help show that yajl
doesn't interpret this as an error it should handle, but something that the higher level code should deal with in its representation.
Diffstat (limited to 'test')
-rw-r--r--test/cases/array_close.json1
-rw-r--r--test/cases/array_close.json.gold1
-rw-r--r--test/cases/array_open.json1
-rw-r--r--test/cases/array_open.json.gold1
-rw-r--r--test/cases/map_close.json1
-rw-r--r--test/cases/map_close.json.gold1
-rw-r--r--test/cases/map_open.json1
-rw-r--r--test/cases/map_open.json.gold1
8 files changed, 8 insertions, 0 deletions
diff --git a/test/cases/array_close.json b/test/cases/array_close.json
new file mode 100644
index 0000000..079b579
--- /dev/null
+++ b/test/cases/array_close.json
@@ -0,0 +1 @@
+]
diff --git a/test/cases/array_close.json.gold b/test/cases/array_close.json.gold
new file mode 100644
index 0000000..4eedbc9
--- /dev/null
+++ b/test/cases/array_close.json.gold
@@ -0,0 +1 @@
+parse error: unallowed token at this point in JSON text
diff --git a/test/cases/array_open.json b/test/cases/array_open.json
new file mode 100644
index 0000000..558ed37
--- /dev/null
+++ b/test/cases/array_open.json
@@ -0,0 +1 @@
+[
diff --git a/test/cases/array_open.json.gold b/test/cases/array_open.json.gold
new file mode 100644
index 0000000..86c13ec
--- /dev/null
+++ b/test/cases/array_open.json.gold
@@ -0,0 +1 @@
+array open '['
diff --git a/test/cases/map_close.json b/test/cases/map_close.json
new file mode 100644
index 0000000..5c34318
--- /dev/null
+++ b/test/cases/map_close.json
@@ -0,0 +1 @@
+}
diff --git a/test/cases/map_close.json.gold b/test/cases/map_close.json.gold
new file mode 100644
index 0000000..4eedbc9
--- /dev/null
+++ b/test/cases/map_close.json.gold
@@ -0,0 +1 @@
+parse error: unallowed token at this point in JSON text
diff --git a/test/cases/map_open.json b/test/cases/map_open.json
new file mode 100644
index 0000000..98232c6
--- /dev/null
+++ b/test/cases/map_open.json
@@ -0,0 +1 @@
+{
diff --git a/test/cases/map_open.json.gold b/test/cases/map_open.json.gold
new file mode 100644
index 0000000..a823ebe
--- /dev/null
+++ b/test/cases/map_open.json.gold
@@ -0,0 +1 @@
+map open '{'