\f
(ert-deftest elisp-shorthand-read-buffer ()
+ :expected-result (if (featurep 'symbol-packages) :failed :passed)
(let* ((gsym (downcase (symbol-name (cl-gensym "sh-"))))
(shorthand-sname (format "s-%s" gsym))
(expected (intern (format "shorthand-longhand-%s" gsym))))
(should (not (intern-soft shorthand-sname)))))
(ert-deftest elisp-shorthand-read-from-string ()
+ :expected-result (if (featurep 'symbol-packages) :failed :passed)
(let* ((gsym (downcase (symbol-name (cl-gensym "sh-"))))
(shorthand-sname (format "s-%s" gsym))
(expected (intern (format "shorthand-longhand-%s" gsym))))
(should (not (intern-soft shorthand-sname)))))
(ert-deftest elisp-shorthand-load-a-file ()
+ :expected-result (if (featurep 'symbol-packages) :failed :passed)
(let ((test-file (ert-resource-file "simple-shorthand-test.el")))
(mapatoms (lambda (s)
(when (string-match "^elisp--foo-" (symbol-name s))
(should-not (intern-soft "f-test"))))
(ert-deftest elisp-shorthand-byte-compile-a-file ()
-
+ :expected-result (if (featurep 'symbol-packages) :failed :passed)
(let ((test-file (ert-resource-file "simple-shorthand-test.el"))
(byte-compiled (ert-resource-file "simple-shorthand-test.elc")))
(mapatoms (lambda (s)
(should-not (intern-soft "f-test"))))
(ert-deftest elisp-shorthand-completion-at-point ()
+ :expected-result (if (featurep 'symbol-packages) :failed :passed)
(let ((test-file (ert-resource-file "simple-shorthand-test.el")))
(load test-file)
(with-current-buffer (find-file-noselect test-file)
(revert-buffer t t))))
(ert-deftest elisp-shorthand-escape ()
+ :expected-result (if (featurep 'symbol-packages) :failed :passed)
(let ((test-file (ert-resource-file "simple-shorthand-test.el")))
(load test-file)
(should (intern-soft "f-test4---"))
(should (unintern "f-test4---"))))
(ert-deftest elisp-dont-shadow-punctuation-only-symbols ()
+ :expected-result (if (featurep 'symbol-packages) :failed :passed)
(let* ((shorthanded-form '(/= 42 (-foo 42)))
(expected-longhand-form '(/= 42 (fooey-foo 42)))
(observed (let ((read-symbol-shorthands