From 4450ae0f7801182723a514cb02a1667a3dbcfc8e Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 20 Feb 2022 19:17:37 +0100 Subject: [PATCH] Fix a compilation warning in cus-edit-tests.el --- test/lisp/cus-edit-tests.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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))) -- 2.39.5