emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-surround 6ed0750414 107/175: Add examples from readme


From: ELPA Syncer
Subject: [nongnu] elpa/evil-surround 6ed0750414 107/175: Add examples from readme as automated tests
Date: Mon, 9 Oct 2023 13:01:07 -0400 (EDT)

branch: elpa/evil-surround
commit 6ed075041403b8abb7672d258dcb12600d20880e
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: Evgeni Kolev <evgenysw@gmail.com>

    Add examples from readme as automated tests
---
 test/evil-surround-test.el | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/test/evil-surround-test.el b/test/evil-surround-test.el
index bbfe45a47f..240ec7a557 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!")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]