]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a compilation warning in cus-edit-tests.el
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 20 Feb 2022 18:17:37 +0000 (19:17 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 20 Feb 2022 18:17:49 +0000 (19:17 +0100)
test/lisp/cus-edit-tests.el

index 7a597ccf343267d7ff35c3999502843ee8022637..0ef5168109bdeb769ec68413b43c0964830ca8a1 100644 (file)
       (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)))