diff options
author | Stefan Kangas <stefan@marxist.se> | 2022-07-16 18:13:56 +0200 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2022-07-16 18:23:09 +0200 |
commit | 71b58ade86c7efc1019f88a9a3768877a2127c24 (patch) | |
tree | dd6d5b31c3d6407252c1c9212f6bdc1e4af4e6c8 | |
parent | 9a5b52dace4cb0fe6b99205911d9b2f2487a4a83 (diff) | |
download | emacs-71b58ade86c7efc1019f88a9a3768877a2127c24.tar.gz |
New test for make_symbol_constant
* test/src/data-tests.el (data-tests-make_symbol_constant): New
test.
-rw-r--r-- | test/src/data-tests.el | 4 |
1 files changed, 4 insertions, 0 deletions
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 |