Skip to content

Commit

Permalink
test: add tests for #821
Browse files Browse the repository at this point in the history
Fixes #821
  • Loading branch information
Fuco1 committed Apr 3, 2024
1 parent aacc3ce commit bea8f4e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/smartparens-ess-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,18 @@ kill it as a word/symbol"
(sp-test--ess-mode)
(execute-kbd-macro "\\(foo")
(sp-buffer-equals "\"\\(foo|\\)\""))))

;; #821
(sp-ert-deftest sp-test-ess-backwards-kill-word
:mode 'ess-r-mode
(sp-test-complex "c(\"test\", \"one\")|"
(sp-backward-kill-word 1)
"c(\"test\", \"|\")")
(sp-test-complex "c(\"test\", \"one\"|)"
(sp-backward-kill-word 1)
"c(\"test\", \"|\")")
(sp-test-complex "ggplot(mtcars, aes(mpg, am)) +
facet_wrap|()"
(sp-backward-kill-word 1)
"ggplot(mtcars, aes(mpg, am)) +
facet_|()"))

0 comments on commit bea8f4e

Please sign in to comment.