mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-28 00:01:33 -08:00
Fix json-serialize/object test failure
* test/src/json-tests.el (json-serialize/object): Accept failure with different code.
This commit is contained in:
parent
d8aba87a0d
commit
bc87ee925d
1 changed files with 2 additions and 1 deletions
|
|
@ -76,7 +76,8 @@
|
|||
(should (equal (json-serialize '(abc [1 2 t] :def :null))
|
||||
"{\"abc\":[1,2,true],\"def\":null}"))
|
||||
(should-error (json-serialize '#1=(:a 1 . #1#)) :type 'circular-list)
|
||||
(should-error (json-serialize '#1=(:a 1 :b . #1#)) :type 'circular-list)
|
||||
(should-error (json-serialize '#1=(:a 1 :b . #1#)):type '(circular-list
|
||||
wrong-type-argument))
|
||||
(should-error (json-serialize '(:foo "bar" (unexpected-alist-key . 1)))
|
||||
:type 'wrong-type-argument)
|
||||
(should-error (json-serialize '((abc . "abc") :unexpected-plist-key "key"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue