diff options
| author | Philipp Stephani | 2019-04-23 11:59:29 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2019-04-23 12:00:32 +0200 |
| commit | b59429a43ebe96b3882b237440ac79ad95e636c8 (patch) | |
| tree | 9036066c68ef359904a9fede93b4595cf6a25b31 /test/src | |
| parent | 0d5caa9a0c668d06ab650392bd52ad03a4dfbd1a (diff) | |
| download | emacs-b59429a43ebe96b3882b237440ac79ad95e636c8.tar.gz emacs-b59429a43ebe96b3882b237440ac79ad95e636c8.zip | |
Small fix for a JSON unit test.
* test/src/json-tests.el (json-parse-string/null): Make JSON object
syntactically valid. This test is supposed to check whether an
escaped null character causes an error, but without quoting the string
it would be syntactically invalid in any case.
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/json-tests.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/src/json-tests.el b/test/src/json-tests.el index 542eec11bf3..7d824b5c953 100644 --- a/test/src/json-tests.el +++ b/test/src/json-tests.el | |||
| @@ -159,7 +159,7 @@ | |||
| 159 | (skip-unless (fboundp 'json-parse-string)) | 159 | (skip-unless (fboundp 'json-parse-string)) |
| 160 | (should-error (json-parse-string "\x00") :type 'wrong-type-argument) | 160 | (should-error (json-parse-string "\x00") :type 'wrong-type-argument) |
| 161 | ;; FIXME: Reconsider whether this is the right behavior. | 161 | ;; FIXME: Reconsider whether this is the right behavior. |
| 162 | (should-error (json-parse-string "[a\\u0000b]") :type 'json-parse-error)) | 162 | (should-error (json-parse-string "[\"a\\u0000b\"]") :type 'json-parse-error)) |
| 163 | 163 | ||
| 164 | (ert-deftest json-parse-string/invalid-unicode () | 164 | (ert-deftest json-parse-string/invalid-unicode () |
| 165 | "Some examples from | 165 | "Some examples from |