diff options
| author | Filipe Correa Lima da Silva <filipe.silva@bcb.gov.br> | 2017-12-07 19:11:56 -0200 |
|---|---|---|
| committer | Filipe Correa Lima da Silva <filipe.silva@bcb.gov.br> | 2017-12-07 19:15:37 -0200 |
| commit | 757ddb93c7fb95373e029bd8404e01e9ef958815 (patch) | |
| tree | e5bb3fc0be0f2e87a842abb5d7adadf2e5bf7f8b | |
| parent | 6270ab1830e6f59e2e7dbe029f36dd58eace0ba2 (diff) | |
add tests for @jusbur's pull #130 which fixes #125
| -rw-r--r-- | test/evil-surround-test.el | 20 |
1 files changed, 20 insertions, 0 deletions
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<em>") "<em>Hello</em> 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<a>") + "<a>tag1</a> tag2" + ("W.") + "<a>tag1</a> <a>tag2</a>")) (ert-info ("repeat surrounding") (evil-test-buffer "[o]ne two three" |
