summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/evil-surround-test.el26
1 files changed, 25 insertions, 1 deletions
diff --git a/test/evil-surround-test.el b/test/evil-surround-test.el
index bbfe45a..240ec7a 100644
--- a/test/evil-surround-test.el
+++ b/test/evil-surround-test.el
@@ -14,4 +14,28 @@
("csb'")
"one 'two' three"
("ds'")
- "one two three")))
+ "one two three"))
+ (ert-info ("examples from readme")
+ (evil-test-buffer
+ :visual-start nil
+ :visual-end nil
+ "\"Hello world!\""
+ (turn-on-evil-surround-mode)
+ ("cs\"'")
+ "'Hello world!'"
+ ("cs'<q>")
+ "<q>Hello world!</q>"
+ ("cst\"")
+ "\"Hello world!\""
+ ("ds\"")
+ "Hello world!"
+ ("ysiw]")
+ "[Hello] world!"
+ ("cs[{")
+ "{ Hello } world!"
+ ("yssb")
+ "({ Hello } world!)"
+ ("lds{ds)") ;; 'l' to move the cursor right, inside brackets
+ "Hello world!"
+ ("ysiw<em>")
+ "<em>Hello</em> world!")))