diff options
| author | ninrod <filipe.silva@gmail.com> | 2017-12-02 01:19:31 -0200 |
|---|---|---|
| committer | ninrod <filipe.silva@gmail.com> | 2017-12-02 01:19:31 -0200 |
| commit | 57daf201cd808fd174a2cffee90cca72eafc70e9 (patch) | |
| tree | 31589cbbdb1e04969bd85318a8c3e42e1153f712 | |
| parent | cb4f0be9b42bff14fe807df6048f0fdafeff0545 (diff) | |
add yS test
| -rw-r--r-- | test/evil-surround-test.el | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/evil-surround-test.el b/test/evil-surround-test.el index c8eaff4..5410176 100644 --- a/test/evil-surround-test.el +++ b/test/evil-surround-test.el @@ -4,6 +4,16 @@ (require 'evil-surround) (require 'evil-test-helpers) +;; interactive test helper (this is the standard configuration) +(evil-add-to-alist + 'evil-surround-pairs-alist + ?\) '("(" . ")") + ?\] '("[" . "]") + ?\} '("{" . "}") + ?\( '("( " . " )") + ?\[ '("[ " . " ]") + ?\{ '("{ " . " }")) + (ert-deftest evil-surround-test () (ert-info ("basic surrounding") (evil-test-buffer @@ -126,6 +136,13 @@ "[o]ne two three" ("ys3wb") "[(]one two three)")) + (ert-info ("yS test") + (evil-test-buffer + "some_word" + (turn-on-evil-surround-mode) + ("ySiW\"") + "\"\nsome_word\n\"" + )) (ert-info ("ensure backquote delimiters work") (evil-test-buffer "`this_is_a_[b]acktick_surrounded_word`" |
