[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 1498ed3 2/3: Simplify a JSON test
From: |
Philipp Stephani |
Subject: |
[Emacs-diffs] master 1498ed3 2/3: Simplify a JSON test |
Date: |
Thu, 21 Dec 2017 20:03:43 -0500 (EST) |
branch: master
commit 1498ed3705a9b7c3340e5b42186736bf5ce5f8bb
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>
Simplify a JSON test
* test/src/json-tests.el (json-serialize/invalid-unicode):
Simplify test. Hexadecimal escape sequences allow putting
non-Unicode characters in strings directly.
---
test/src/json-tests.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/test/src/json-tests.el b/test/src/json-tests.el
index 13953be..71aa4a8 100644
--- a/test/src/json-tests.el
+++ b/test/src/json-tests.el
@@ -87,8 +87,7 @@
;; FIXME: "out of memory" is the wrong error signal, but we don't
;; currently distinguish between error types when serializing.
(should-error (json-serialize ["a\uDBBBb"]) :type 'json-out-of-memory)
- (should-error (json-serialize (vector (string ?a #x110000 ?b)))
- :type 'json-out-of-memory)
+ (should-error (json-serialize ["u\x110000v"]) :type 'json-out-of-memory)
(should-error (json-serialize ["u\xCCv"]) :type 'json-out-of-memory))
(ert-deftest json-parse-string/null ()