summaryrefslogtreecommitdiff
path: root/test/evil-surround-test.el
diff options
context:
space:
mode:
authorBrian Leung <leungbk@posteo.net>2022-01-02 16:33:07 -0800
committerBrian Leung <leungbk@posteo.net>2022-01-02 19:45:47 -0800
commit191ad92fb89a4eb80ef2c130a64889eb1bb676c2 (patch)
tree232628a363b825e1dc5506835bf39439f783fc66 /test/evil-surround-test.el
parent282a975bda83310d20a2c536ac3cf95d2bf188a5 (diff)
Add support for surrounding with function calls in prefix form
Diffstat (limited to 'test/evil-surround-test.el')
-rw-r--r--test/evil-surround-test.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/evil-surround-test.el b/test/evil-surround-test.el
index 1da5d37..44662f5 100644
--- a/test/evil-surround-test.el
+++ b/test/evil-surround-test.el
@@ -99,6 +99,16 @@
"function(argument1) argument2"
("W.")
"function(argument1) function(argument2)"))
+ (ert-info ("prefix-function surrounding with dot repeat")
+ (evil-test-buffer
+ :visual-start nil
+ :visual-end nil
+ "argument1 argument2"
+ (turn-on-evil-surround-mode)
+ ("ysiw\C-ffunction" [return])
+ "(function argument1) argument2"
+ ("WW.")
+ "(function argument1) (function argument2)"))
(ert-info ("even more examples from readme: tag surrounding with dot repeat")
(evil-test-buffer
:visual-start nil