diff options
author | Timothy J. Wood <tjw@omnigroup.com> | 2009-02-26 13:28:07 -0800 |
---|---|---|
committer | Timothy J. Wood <tjw@omnigroup.com> | 2009-02-26 13:28:07 -0800 |
commit | d4d5f5af2cc52d7b8c92fc2a57f18e38d1f6f5d2 (patch) | |
tree | 00f81d0dfd0d9d561e1c150cacb002149c7a90d1 /test/cases | |
parent | 939e9d60903933b0ac9bf57f03fd575fd38e57fb (diff) | |
download | yajl-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/cases')
-rw-r--r-- | test/cases/array_close.json | 1 | ||||
-rw-r--r-- | test/cases/array_close.json.gold | 1 | ||||
-rw-r--r-- | test/cases/array_open.json | 1 | ||||
-rw-r--r-- | test/cases/array_open.json.gold | 1 | ||||
-rw-r--r-- | test/cases/map_close.json | 1 | ||||
-rw-r--r-- | test/cases/map_close.json.gold | 1 | ||||
-rw-r--r-- | test/cases/map_open.json | 1 | ||||
-rw-r--r-- | test/cases/map_open.json.gold | 1 |
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 '{' |