From 71b58ade86c7efc1019f88a9a3768877a2127c24 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 16 Jul 2022 18:13:56 +0200 Subject: [PATCH] New test for make_symbol_constant * test/src/data-tests.el (data-tests-make_symbol_constant): New test. --- test/src/data-tests.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/src/data-tests.el b/test/src/data-tests.el index 7d8535f5f37..7ce2995e562 100644 --- a/test/src/data-tests.el +++ b/test/src/data-tests.el @@ -768,4 +768,8 @@ comparing the subr with a much slower Lisp implementation." (default-value 'last-coding-system-used)) '(no-conversion bug34318))))) +(ert-deftest data-tests-make_symbol_constant () + "Can't set variable marked with 'make_symbol_constant'." + (should-error (setq most-positive-fixnum 1) :type 'setting-constant)) + ;;; data-tests.el ends here -- 2.39.5