emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 72570e0 1/2: ; Fix last addition to dom-tests.el


From: Basil L. Contovounesios
Subject: master 72570e0 1/2: ; Fix last addition to dom-tests.el
Date: Thu, 30 Apr 2020 06:06:20 -0400 (EDT)

branch: master
commit 72570e0fc39630b03eb2e7fb1245aeaaa5a3c448
Author: Basil L. Contovounesios <address@hidden>
Commit: Basil L. Contovounesios <address@hidden>

    ; Fix last addition to dom-tests.el
    
    * test/lisp/dom-tests.el (dom-tests-remove-attribute): Make test
    idempotent by avoiding destructive modification of constant literal.
---
 test/lisp/dom-tests.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/lisp/dom-tests.el b/test/lisp/dom-tests.el
index eb15500..f743df7 100644
--- a/test/lisp/dom-tests.el
+++ b/test/lisp/dom-tests.el
@@ -85,7 +85,7 @@
     (should (equal (dom-attr dom attr) value))))
 
 (ert-deftest dom-tests-remove-attribute ()
-  (let ((dom `(body ((foo . "bar") (zot . "foobar")))))
+  (let ((dom (copy-tree '(body ((foo . "bar") (zot . "foobar"))))))
     (should (equal (dom-attr dom 'foo) "bar"))
     (dom-remove-attribute dom 'foo)
     (should (equal (dom-attr dom 'foo) nil))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]