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

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

[nongnu] elpa/paredit 23afafc 128/224: Add some trivial tests for region


From: ELPA Syncer
Subject: [nongnu] elpa/paredit 23afafc 128/224: Add some trivial tests for region deletion/killing commands.
Date: Sat, 7 Aug 2021 09:22:34 -0400 (EDT)

branch: elpa/paredit
commit 23afafcb5562b7c7ce8fae124ce1a4237c0f9b97
Author: Taylor R Campbell <campbell@mumble.net>
Commit: Taylor R Campbell <campbell@mumble.net>

    Add some trivial tests for region deletion/killing commands.
    
    Ignore-this: 5ba090d8b5214e6b53419108126e74f7
    
    darcs-hash:20110411185319-00fcc-9d494301c54ca406124f243a884c163dc92be27c
---
 test.el | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/test.el b/test.el
index 107652a..3ff0544 100644
--- a/test.el
+++ b/test.el
@@ -239,6 +239,19 @@ Four arguments: the paredit command, the text of the buffer
 (paredit-test 'paredit-kill
   '((";foo|\n(bar)\n" ";foo|(bar)\n")
     (";foo|\n(bar\n baz)\n" error)))
+
+(dolist (command '(paredit-delete-region paredit-kill-region))
+  ;++ Need to check whether `paredit-kill-region' updates the kill ring
+  ;++ correctly.
+  (paredit-test command
+    '(("|foo" error)
+      ("|foo_" "|")
+      ("|(foo)_" "|")
+      (";;; f|oo (bar ;_baz\n(zot)\n" ";;; f|baz\n(zot)\n")
+      ("(foo |bar_ baz)\n" "(foo | baz)\n")
+      ("(foo |(bar \"baz\" ; quux\n          zot)\n     _mumble)"
+       "(foo |mumble)")
+      ("(foo (bar |baz) (quux _zot) mumble)" "(foo (bar |zot) mumble)"))))
 
 (defun paredit-canary-indent-method (state indent-point normal-indent)
   (check-parens)



reply via email to

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