Fix a compilation warning in cus-edit-tests.el

This commit is contained in:
Lars Ingebrigtsen 2022-02-20 19:17:37 +01:00
parent 48c65f219d
commit 4450ae0f78

View file

@ -76,10 +76,11 @@
(customize-saved)
(should (search-forward cus-edit-tests--obsolete-option-tag nil t)))))
(defcustom cus-edit-test-foo1 0
""
:type 'number)
(ert-deftest test-setopt ()
(defcustom cus-edit-test-foo1 0
""
:type 'number)
(should (= (setopt cus-edit-test-foo1 1) 1))
(should (= cus-edit-test-foo1 1))
(should-error (setopt cus-edit-test-foo1 :foo)))