diff options
author | Simen Heggestøyl <simenheg@gmail.com> | 2015-11-24 23:13:30 +0100 |
---|---|---|
committer | Simen Heggestøyl <simenheg@gmail.com> | 2015-11-24 23:13:30 +0100 |
commit | 0805069ae5709dc1b97f7349c4f9a7651f3078e3 (patch) | |
tree | 7c47b46457bc54b3e75a8a090ab104efc92fdac2 /lisp | |
parent | 9f94c709b1bb29e275fe6546d22c58a78072672f (diff) | |
download | emacs-0805069ae5709dc1b97f7349c4f9a7651f3078e3.tar.gz |
Extend the test suite for json.el
* lisp/json.el (json-plist-p): Clarify docstring.
* test/automated/json-tests.el (json-tests--with-temp-buffer): New
macro.
(test-json-join, test-json-alist-p)
(test-json-plist-p, test-json-advance, test-json-peek)
(test-json-pop, test-json-skip-whitespace)
(test-json-read-keyword, test-json-encode-keyword)
(test-json-read-number, test-json-encode-number)
(test-json-read-escaped-char, test-json-read-string)
(test-json-encode-string, test-json-encode-key)
(test-json-new-object, test-json-add-to-object)
(test-json-read-object, test-json-encode-list)
(test-json-read-array, test-json-encode-array)
(test-json-read, test-json-read-from-string)
(test-json-encode): New tests.
(json-read-simple-alist): Merged into `test-json-read-object'.
(json-encode-string-with-special-chars): Merged into
`test-json-encode-string'.
(json-read-string-with-special-chars): Split into
`test-json-encode-string' and `test-json-read-from-string'.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/json.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/json.el b/lisp/json.el index 0214a3e3a4d..85827b5d9bf 100644 --- a/lisp/json.el +++ b/lisp/json.el @@ -149,7 +149,7 @@ respectively.") (null list)) (defun json-plist-p (list) - "Non-null if and only if LIST is a plist." + "Non-null if and only if LIST is a plist with keyword keys." (while (consp list) (setq list (if (and (keywordp (car list)) (consp (cdr list))) |