aboutsummaryrefslogtreecommitdiff
path: root/test/testdata
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2009-07-13 11:01:20 +0300
committerPetri Lehtinen <petri@digip.org>2009-07-13 21:45:16 +0300
commit625f50f9166592d165b8e4bd9681ba7938d4c072 (patch)
treef7411acb7213543eff68768462a2958506b1c8c6 /test/testdata
parent4c414bdd6d1038195bb6a125fc86eb68d67857e3 (diff)
downloadjansson-625f50f9166592d165b8e4bd9681ba7938d4c072.zip
jansson-625f50f9166592d165b8e4bd9681ba7938d4c072.tar.gz
jansson-625f50f9166592d165b8e4bd9681ba7938d4c072.tar.bz2
Streamify the loader
It's no longer needed to load the whole input into a string and then parse from the string. Instead, the input is read as needed from a string or file.
Diffstat (limited to 'test/testdata')
-rw-r--r--test/testdata/invalid14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/testdata/invalid b/test/testdata/invalid
index 2ee6b7b..221548c 100644
--- a/test/testdata/invalid
+++ b/test/testdata/invalid
@@ -10,7 +10,7 @@ null
{
====
2
-'}' expected near end of file
+string or '}' expected near end of file
========
[
====
@@ -45,17 +45,17 @@ invalid token near '''
{,
====
1
-string expected near ','
+string or '}' expected near ','
========
{"
====
1
-string expected near '"'
+string or '}' expected near '"'
========
{"a
====
1
-string expected near '"a'
+string or '}' expected near '"a'
========
{"a"
====
@@ -65,7 +65,7 @@ string expected near '"a'
{'a'
====
1
-string expected near '''
+string or '}' expected near '''
========
{"a":
====
@@ -80,12 +80,12 @@ invalid token near '"a'
{[
====
1
-string expected near '['
+string or '}' expected near '['
========
[{
====
2
-'}' expected near end of file
+string or '}' expected near end of file
========
[{}
====