[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-surround a3803cfb51 141/175: Add a test for surroundi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-surround a3803cfb51 141/175: Add a test for surrounding with a tag in a macro |
Date: |
Mon, 9 Oct 2023 13:01:10 -0400 (EDT) |
branch: elpa/evil-surround
commit a3803cfb514180de3ce14727b293afd92e10f4bd
Author: James N. V. Cash <james.nvc@gmail.com>
Commit: James N. V. Cash <james.nvc@gmail.com>
Add a test for surrounding with a tag in a macro
Not using `evil-test-buffer`, as it doesn't seem to play well with
this kind of testing a kbd macro.
Also slightly different from the already-present tests for surrounding
with tags, because it does additional things after wrapping -- without
the included change, this surrounds with a `<div>` tag, but also
inserts the following keys as well, instead of treating them as
commands.
---
test/evil-surround-test.el | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/test/evil-surround-test.el b/test/evil-surround-test.el
index 0ab98de36e..763aa447e8 100644
--- a/test/evil-surround-test.el
+++ b/test/evil-surround-test.el
@@ -243,3 +243,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))))))))
- [nongnu] elpa/evil-surround 62255a9901 123/175: Fix regression for Emacs 26 caused by #125 fix, (continued)
- [nongnu] elpa/evil-surround 62255a9901 123/175: Fix regression for Emacs 26 caused by #125 fix, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 6e1da767ec 125/175: try same layout layout as evil, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 63ce018488 132/175: add license file, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 2d878b6cce 166/175: Enable lexical binding, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 6028c76399 131/175: readme: add missing link to `define-and-bind-text-object` macro, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 83c2e0f369 137/175: add a "make emacs" makefile option to fire up a clean emacs..., ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 440d391c89 130/175: Fix visible narrowing when surrounding within a field (#135), ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround b11048d92a 173/175: Trim whitespace from delimeters before using for deletion/change, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 4d6cc94df0 146/175: Add surround text objects from local keymap (#165), ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 282a975bda 154/175: Typo fix, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround a3803cfb51 141/175: Add a test for surrounding with a tag in a macro,
ELPA Syncer <=
- [nongnu] elpa/evil-surround 6d37e5c910 115/175: add melpa stable badge, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround f273821f57 165/175: Merge pull request #188 from skangas/nongnu-elpa-fixes, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 2bc8aa6425 160/175: Merge pull request #186 from leungbk/prefix-calls, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 4a21d756b7 168/175: Revert "Enable lexical binding", ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround a3034c284d 049/175: Fix surrounding with invalid chars, like ESC (Fix #51), ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 27eb4112db 050/175: Merge pull request #53 from hlissner/block-surround, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 71f380b6b6 042/175: Merge pull request #35 from Silex/master, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround ce36c8307c 047/175: correct README.md, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 641498131a 059/175: Refactor evil-surround-block, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 0eeef7a3a9 070/175: Merge pull request #68 from hlissner/master, ELPA Syncer, 2023/10/09