summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/evil-surround-test.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/evil-surround-test.el b/test/evil-surround-test.el
index a93bd7a..2f40d4a 100644
--- a/test/evil-surround-test.el
+++ b/test/evil-surround-test.el
@@ -253,3 +253,18 @@
"[w]ord"
("ysiwb")
"[(]word)")))
+
+(ert-deftest evil-surround-tag-from-macro ()
+ (ert-info ("tag surround in macro")
+ (save-window-excursion
+ (with-current-buffer (get-buffer-create "*evil-surround-tag-from-macro*")
+ (switch-to-buffer-other-window (current-buffer))
+ (insert "foo\nbar\nbaz\n")
+ (goto-char (point-min))
+ (evil-mode 1)
+ (turn-on-evil-surround-mode)
+ (execute-kbd-macro
+ "yse<div>f>lysit$j_")
+ (should
+ (string= "<div>$foo$</div>\nbar\nbaz\n"
+ (buffer-substring-no-properties (point-min) (point-max))))))))