Skip to content

Commit 636fc03

Browse files
committed
We must not override the configuration, else the other tests break.
1 parent d8a0d33 commit 636fc03

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test.lisp

+6-6
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,11 @@
208208
(gethash "bar" parsed-hash))))
209209

210210
(deftest :yason "parse-ordering-alist"
211-
(setf yason:*parse-object-as* :alist)
212-
(test-equal '(("foo" . 0) ("bar" . 1) ("foo" . 2))
213-
(yason:parse "{\"foo\":0,\"bar\":1,\"foo\":2}")))
211+
(let ((yason:*parse-object-as* :alist))
212+
(test-equal '(("foo" . 0) ("bar" . 1) ("foo" . 2))
213+
(yason:parse "{\"foo\":0,\"bar\":1,\"foo\":2}"))))
214214

215215
(deftest :yason "parse-ordering-plist"
216-
(setf yason:*parse-object-as* :plist)
217-
(test-equal '("foo" 0 "bar" 1 "foo" 2)
218-
(yason:parse "{\"foo\":0,\"bar\":1,\"foo\":2}")))
216+
(let ((yason:*parse-object-as* :plist))
217+
(test-equal '("foo" 0 "bar" 1 "foo" 2)
218+
(yason:parse "{\"foo\":0,\"bar\":1,\"foo\":2}"))))

0 commit comments

Comments
 (0)