From 757ddb93c7fb95373e029bd8404e01e9ef958815 Mon Sep 17 00:00:00 2001 From: Filipe Correa Lima da Silva Date: Thu, 7 Dec 2017 19:11:56 -0200 Subject: add tests for @jusbur's pull #130 which fixes #125 --- test/evil-surround-test.el | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/evil-surround-test.el b/test/evil-surround-test.el index 5410176..120bac5 100644 --- a/test/evil-surround-test.el +++ b/test/evil-surround-test.el @@ -49,6 +49,26 @@ "Hello world!" ("ysiw") "Hello world!")) + (ert-info ("more examples from readme: function surrounding with dot repeat") + (evil-test-buffer + :visual-start nil + :visual-end nil + "argument1 argument2" + (turn-on-evil-surround-mode) + ("ysiwffunction" [return]) + "function(argument1) argument2" + ("W.") + "function(argument1) function(argument2)")) + (ert-info ("even more examples from readme: tag surrounding with dot repeat") + (evil-test-buffer + :visual-start nil + :visual-end nil + "tag1 tag2" + (turn-on-evil-surround-mode) + ("ysiw") + "tag1 tag2" + ("W.") + "tag1 tag2")) (ert-info ("repeat surrounding") (evil-test-buffer "[o]ne two three" -- cgit v1.0