From 83f972ceda20e244f52bde7ac052e6931a6d33d3 Mon Sep 17 00:00:00 2001 From: m-holger Date: Thu, 26 Jan 2023 09:55:34 +0000 Subject: Refactor end of input handling in JSONParser --- libtests/libtests.testcov | 3 +-- libtests/qtest/json_parse/bad-27.out | 2 +- libtests/qtest/json_parse/bad-28.out | 2 +- libtests/qtest/json_parse/bad-34.out | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) (limited to 'libtests') diff --git a/libtests/libtests.testcov b/libtests/libtests.testcov index 5ca5fb77..4b3bb45b 100644 --- a/libtests/libtests.testcov +++ b/libtests/libtests.testcov @@ -79,9 +79,8 @@ 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 JSON parse leading zero 0 -JSON parse premature end of u 0 +JSON parse ls premature end of input 0 JSON parse bad hex after u 0 JSONHandler unhandled value 0 JSONHandler unexpected key 0 diff --git a/libtests/qtest/json_parse/bad-27.out b/libtests/qtest/json_parse/bad-27.out index 2c2df076..70fcbf74 100644 --- a/libtests/qtest/json_parse/bad-27.out +++ b/libtests/qtest/json_parse/bad-27.out @@ -1 +1 @@ -exception: bad-27.json: JSON: offset 6: unterminated string +exception: bad-27.json: JSON: premature end of input diff --git a/libtests/qtest/json_parse/bad-28.out b/libtests/qtest/json_parse/bad-28.out index d7db2aea..005a68d2 100644 --- a/libtests/qtest/json_parse/bad-28.out +++ b/libtests/qtest/json_parse/bad-28.out @@ -1 +1 @@ -exception: bad-28.json: JSON: offset 16: unterminated string +exception: bad-28.json: JSON: premature end of input diff --git a/libtests/qtest/json_parse/bad-34.out b/libtests/qtest/json_parse/bad-34.out index f9db587a..c21838c4 100644 --- a/libtests/qtest/json_parse/bad-34.out +++ b/libtests/qtest/json_parse/bad-34.out @@ -1 +1 @@ -exception: bad-34.json: JSON: offset 3: \u must be followed by four characters +exception: bad-34.json: JSON: premature end of input -- cgit v1.2.3-54-g00ecf