From: João Távora Date: Sun, 10 Oct 2021 11:03:15 +0000 (+0100) Subject: Add new failing test for bug#51089 X-Git-Tag: emacs-28.0.90~337 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c2513c5d0d;p=emacs.git Add new failing test for bug#51089 * test/lisp/progmodes/elisp-mode-tests.el (elisp-dont-shadow-punctuation-only-symbols): Add new failing test. --- diff --git a/test/lisp/progmodes/elisp-mode-tests.el b/test/lisp/progmodes/elisp-mode-tests.el index ad39cebfc8b..e816d3c1b02 100644 --- a/test/lisp/progmodes/elisp-mode-tests.el +++ b/test/lisp/progmodes/elisp-mode-tests.el @@ -1093,6 +1093,18 @@ evaluation of BODY." (should (= 84 (funcall (intern-soft "f-test4---")))) (should (unintern "f-test4---")))) +(ert-deftest elisp-dont-shadow-punctuation-only-symbols () + :expected-result :failed ; bug#51089 + (let* ((shorthanded-form '(- 42 (-foo 42))) + (expected-longhand-form '(- 42 (fooey-foo 42))) + (observed (let ((read-symbol-shorthands + '(("-" . "fooey-")))) + (car (read-from-string + (with-temp-buffer + (print shorthanded-form (current-buffer)) + (buffer-string))))))) + (should (equal observed expected-longhand-form)))) + (ert-deftest test-cl-flet-indentation () :expected-result :failed ; FIXME: bug#9622 (should (equal