From: Lars Ingebrigtsen Date: Sun, 20 Feb 2022 18:17:37 +0000 (+0100) Subject: Fix a compilation warning in cus-edit-tests.el X-Git-Tag: emacs-29.0.90~2194 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4450ae0f7801182723a514cb02a1667a3dbcfc8e;p=emacs.git Fix a compilation warning in cus-edit-tests.el --- diff --git a/test/lisp/cus-edit-tests.el b/test/lisp/cus-edit-tests.el index 7a597ccf343..0ef5168109b 100644 --- a/test/lisp/cus-edit-tests.el +++ b/test/lisp/cus-edit-tests.el @@ -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)))