summaryrefslogtreecommitdiff
path: root/test/src/json-tests.el
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2017-12-22 01:58:39 +0100
committerPhilipp Stephani <phst@google.com>2017-12-22 01:58:39 +0100
commit1498ed3705a9b7c3340e5b42186736bf5ce5f8bb (patch)
treea28869e7a63a268b36dfb0467a56814f5973c216 /test/src/json-tests.el
parentc5f9d47ba4eec5e6eebcd4e21ebee78d3a3e4ff4 (diff)
downloademacs-1498ed3705a9b7c3340e5b42186736bf5ce5f8bb.tar.gz
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.
Diffstat (limited to 'test/src/json-tests.el')
-rw-r--r--test/src/json-tests.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/src/json-tests.el b/test/src/json-tests.el
index 13953beb151..71aa4a8b783 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 ()