aboutsummaryrefslogtreecommitdiffstats
path: root/libtests
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-01-23 21:08:11 +0100
committerm-holger <m-holger@kubitscheck.org>2023-02-01 15:01:57 +0100
commitcdd1f0a9f60747ec0e25139dd530be3caf468eca (patch)
treef9f35cf2849785508842e9d86b5a8722090f8f60 /libtests
parentbfda62aeeb72355b5e8b6fbcdc94c50afaa366ab (diff)
downloadqpdf-cdd1f0a9f60747ec0e25139dd530be3caf468eca.tar.zst
In JSONParser add lex_state ls_number_point
Also. remove '.' as starting char in lsTop.
Diffstat (limited to 'libtests')
-rw-r--r--libtests/libtests.testcov1
-rw-r--r--libtests/qtest/json_parse/bad-04.out2
-rw-r--r--libtests/qtest/json_parse/bad-30.out2
3 files changed, 3 insertions, 2 deletions
diff --git a/libtests/libtests.testcov b/libtests/libtests.testcov
index 26cf2048..5ca5fb77 100644
--- a/libtests/libtests.testcov
+++ b/libtests/libtests.testcov
@@ -76,6 +76,7 @@ JSON parse duplicate e 0
JSON parse unexpected sign 0
JSON parse numeric bad character 0
JSON parse number minus no digits 0
+JSON parse incomplete number 0
JSON parse keyword bad character 0
JSON parse backslash bad character 0
JSON parse unterminated string 0
diff --git a/libtests/qtest/json_parse/bad-04.out b/libtests/qtest/json_parse/bad-04.out
index 7fe71693..27d252f2 100644
--- a/libtests/qtest/json_parse/bad-04.out
+++ b/libtests/qtest/json_parse/bad-04.out
@@ -1 +1 @@
-exception: bad-04.json: JSON: offset 5: decimal point with no digits
+exception: bad-04.json: JSON: offset 4: unexpected character .
diff --git a/libtests/qtest/json_parse/bad-30.out b/libtests/qtest/json_parse/bad-30.out
index bff961af..ec63bb09 100644
--- a/libtests/qtest/json_parse/bad-30.out
+++ b/libtests/qtest/json_parse/bad-30.out
@@ -1 +1 @@
-exception: bad-30.json: JSON: offset 5: decimal point with no digits
+exception: bad-30.json: JSON: offset 4: numeric literal: incomplete number