[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/paredit 84e8ccd2ae 2/7: Add some examples of slurping edge
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/paredit 84e8ccd2ae 2/7: Add some examples of slurping edge cases that we should handle. |
Date: |
Sat, 9 Jul 2022 04:59:07 -0400 (EDT) |
branch: elpa/paredit
commit 84e8ccd2ae3e2d9033533cdd4ce69fb254b20067
Author: Taylor R Campbell <campbell+paredit@mumble.net>
Commit: Taylor R Campbell <campbell+paredit@mumble.net>
Add some examples of slurping edge cases that we should handle.
Derived from suggestion by Jonathon McKitrick <jmckitrick@gmail.com>.
---
test.el | 33 +++++++++++++++++++++++++++++++--
1 file changed, 31 insertions(+), 2 deletions(-)
diff --git a/test.el b/test.el
index d37d92f8aa..539f8b2a22 100644
--- a/test.el
+++ b/test.el
@@ -1287,7 +1287,21 @@ Four arguments: the paredit command, the text of the
buffer
("(\"x\"|) y" "(\"x\"| y)")
("(\"x\")| y" error)
("(\"x\") |y" error)
- ("(\"x\") y|" error)))
+ ("(\"x\") y|" error)
+ ("|(x)y" error)
+ (xfail "(|x)y" "(|x y)" error)
+ (xfail"(x|)y" "(x| y)" error)
+ ("(x)|y" error)
+ ("(x)y|" error)
+ ("|(x) ;c\ny" error)
+ (xfail "(|x) ;c\ny" "(|x ;c\n y)" error)
+ (xfail "(x|) ;c\ny" "(x| ;c\n y)" error)
+ ("(x)| ;c\ny" error)
+ ("(x) |;c\ny" error)
+ ("(x) ;|c\ny" error)
+ ("(x) ;c|\ny" error)
+ ("(x) ;c\n|y" error)
+ ("(x) ;c\ny|" error)))
(paredit-test 'paredit-backward-slurp-sexp
'(("|" error)
@@ -1352,7 +1366,22 @@ Four arguments: the paredit command, the text of the
buffer
("x (\"|y\")" "(x \"|y\")" "(\"x |y\")")
("x (\"y|\")" "(x \"y|\")" "(\"x y|\")")
("x (\"y\"|)" "(x \"y\"|)")
- ("x (\"y\")|" error)))
+ ("x (\"y\")|" error)
+ ("|x(y)" error)
+ ("x|(y)" error)
+ (xfail "x(|y)" "(x |y)" error)
+ (xfail "x(y|)" "(x y|)" error)
+ ("x(y)|" error)
+ ("|x ;c\n(y)" error)
+ ("x| ;c\n(y)" error)
+ ("x | ;c\n(y)" error)
+ ("x |;c\n(y)" error)
+ ("x ;|c\n(y)" error)
+ ("x ;c|\n(y)" error)
+ ("x ;c\n|(y)" error)
+ (xfail "x ;c\n(|y)" "(x ;c\n |y)" error)
+ (xfail "x ;c\n(y|)" "(x ;c\n y|)" error)
+ ("x ;c\n(y)|" error)))
(let ((current-prefix-arg 2))
(paredit-test 'paredit-forward-slurp-sexp
- [nongnu] elpa/paredit updated (8330a41e81 -> d0b1a2f42f), ELPA Syncer, 2022/07/09
- [nongnu] elpa/paredit 86f1f5f3dd 3/7: Stop each test on first failure or unexpected success., ELPA Syncer, 2022/07/09
- [nongnu] elpa/paredit 2ecb5f0dcf 4/7: Test some backward-slurp screw cases., ELPA Syncer, 2022/07/09
- [nongnu] elpa/paredit d0b1a2f42f 7/7: Bump copyright year., ELPA Syncer, 2022/07/09
- [nongnu] elpa/paredit 84e8ccd2ae 2/7: Add some examples of slurping edge cases that we should handle.,
ELPA Syncer <=
- [nongnu] elpa/paredit 568d4d48ef 5/7: More slurpage edge cases., ELPA Syncer, 2022/07/09
- [nongnu] elpa/paredit 4a1450bcc3 6/7: Respect fill-paragraph-function. Fall back to lisp-fill-paragraph., ELPA Syncer, 2022/07/09
- [nongnu] elpa/paredit c6300b9cbe 1/7: Batch up test failures and implement expected-failure., ELPA Syncer, 2022/07/09