Skip to content

Commit

Permalink
[Fix #782] Add the issue report setup as test case
Browse files Browse the repository at this point in the history
Issue was fixed in 826bdcd along with #786.
  • Loading branch information
Fuco1 committed Mar 4, 2018
1 parent 826bdcd commit 8efc55c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/smartparens-elisp-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,15 @@
(ert-deftest sp-test-elisp-invalid-hyperlink/point-after-before-punctuation ()
(sp-test-with-temp-elisp-buffer "; foo'|."
(should-not (sp-lisp-invalid-hyperlink-p nil 'navigate nil))))

;; #782
(ert-deftest sp-test-elisp-invalid-hyperlink/strict-mode-should-delete-over-contraction-after-hyperlink ()
"In case there was a hyperlink followed by punctuation and a
contraction after that the parser figured that the hyperlink
actually ends at the contraction because the quote before the
punctuation was considered invalid."
(sp-test-with-temp-elisp-buffer ";; `a-symbol-name'? I'm|"
(smartparens-strict-mode 1)
(sp-backward-delete-char)
(sp-backward-delete-char)
(sp-buffer-equals ";; `a-symbol-name'? I|")))

0 comments on commit 8efc55c

Please sign in to comment.