[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/paredit 621be23 124/224: Add some tests for recent changes
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/paredit 621be23 124/224: Add some tests for recent changes to deletion and killing commands. |
Date: |
Sat, 7 Aug 2021 09:22:33 -0400 (EDT) |
branch: elpa/paredit
commit 621be23657294eec26dc54bc3c4b5217154da0a0
Author: Taylor R Campbell <campbell@mumble.net>
Commit: Taylor R Campbell <campbell@mumble.net>
Add some tests for recent changes to deletion and killing commands.
Ignore-this: faf1edd6c7cd277cf4fdaa1eff18985c
darcs-hash:20110411180930-00fcc-1d348dfc4d09757c3d608742df27c5a2b95d01fd
---
test.el | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/test.el b/test.el
index e625175..1c4d957 100644
--- a/test.el
+++ b/test.el
@@ -193,7 +193,7 @@ Four arguments: the paredit command, the text of the buffer
;; `comment-search-forward' to wind up inside a character or a
;; string?
))
-
+
(paredit-test 'paredit-forward-delete
'(("f|oo" "f|o")
(";f|(oo" ";f|oo")
@@ -202,7 +202,10 @@ Four arguments: the paredit command, the text of the buffer
(";foo|\n(bar)\n(baz\n quux)" ";foo|(bar)\n(baz\n quux)")
(";foo|\n(bar\n baz)" error)
("|;;foo(" "|;foo(" error)
- ))
+ (";foo|\n(bar);baz\n" ";foo|(bar);baz\n")
+ (";foo|\n(bar);baz" ";foo|(bar);baz")
+ (";foo|\n(bar ;baz\n quux)\n" error)
+ (";foo|\n(bar ;baz\n quux)" error)))
(paredit-test 'paredit-backward-delete
'(("fo|o" "f|o")
@@ -212,7 +215,16 @@ Four arguments: the paredit command, the text of the buffer
(";foo\n|(bar)\n(baz\n quux)" ";foo|(bar)\n(baz\n quux)")
(";foo\n|(bar\n baz)" error)
(";;|foo(" ";|foo(" error)
- ))
+ (";foo\n|(bar);baz\n" ";foo|(bar);baz\n")
+ (";foo\n|(bar);baz" ";foo|(bar);baz")
+ (";foo\n|(bar ;baz\n quux)\n" error)
+ (";foo\n|(bar ;baz\n quux)" error)))
+
+;++ Need lots more tests for this, the hairiest paredit command...
+
+(paredit-test 'paredit-kill
+ '((";foo|\n(bar)\n" ";foo|(bar)\n")
+ (";foo|\n(bar\n baz)\n" error)))
(defun paredit-canary-indent-method (state indent-point normal-indent)
(check-parens)
@@ -230,5 +242,3 @@ Four arguments: the paredit command, the text of the buffer
(paredit-test 'paredit-forward-barf-sexp
'(("(paredit-canary| ;\n (lose))")
("(paredit-canary| ;\n)\n(lose)")))
-
-;++ Killing commands...ugh...
- [nongnu] elpa/paredit 6c14694 113/224: Use `call-interactively' rather than `funcall' in `paredit-test'., (continued)
- [nongnu] elpa/paredit 6c14694 113/224: Use `call-interactively' rather than `funcall' in `paredit-test'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 9cac6fa 106/224: Specify that paredit should work in XEmacs 21.5.28 or later., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 0bb4b62 110/224: Check for expected errors in `paredit-close-FOO'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 3c48233 122/224: Fix checks on deletion of comment boundaries., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 620c3a2 116/224: Break page in test.el before indentation regression tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit d681e3c 111/224: Check for expected errors in `paredit-forward-delete'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 5dc93f9 114/224: Omit redundant `paredit-forward-delete' test., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 0cd0011 109/224: Implement expected errors in test suite., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 8ee8f13 118/224: Fix `paredit-insert-pair' when buffer ends with no-newline comment., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit fc78011 121/224: Tweak `paredit-check-region' and `paredit-region-ok-p'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 621be23 124/224: Add some tests for recent changes to deletion and killing commands.,
ELPA Syncer <=
- [nongnu] elpa/paredit fac925d 125/224: Tweak safe region deletion., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 8d87576 129/224: Fix logic in checking region deletion across comment boundaries., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 4723fb3 132/224: Add and fix some tests for `(' and `)' while in a character literal., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 5558fd0 137/224: Make `paredit-in-char-p' work recursively., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 88a5cf7 139/224: Be explicit about Transient Mark Mode in `paredit-wrap-*' tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit d80a9db 141/224: Fail early in `paredit-convolute-sexp'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 2ec6000 145/224: Fix error message in `paredit-test'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 6f2677b 148/224: Tweak `paredit-convolute-sexp' a little and add some tests for it., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit d54ea28 149/224: Add a trivial shell script to generate paredit.html., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 540bc9c 153/224: Remove unnecessarily nasty text about reporting bugs., ELPA Syncer, 2021/08/07