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

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

[nongnu] elpa/paredit 146a434 194/224: Add some slurp tests with charact


From: ELPA Syncer
Subject: [nongnu] elpa/paredit 146a434 194/224: Add some slurp tests with characters and strings.
Date: Sat, 7 Aug 2021 09:22:48 -0400 (EDT)

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

    Add some slurp tests with characters and strings.
---
 test.el | 36 ++++++++++++++++++++++++++++++++++--
 1 file changed, 34 insertions(+), 2 deletions(-)

diff --git a/test.el b/test.el
index c42f018..235fb81 100644
--- a/test.el
+++ b/test.el
@@ -1254,7 +1254,23 @@ Four arguments: the paredit command, the text of the 
buffer
     ("\"\"| \"\"" error)
     ("\"\" |\"\"" error)
     ;; ("\"\" \"|\"" error)             ;++ Urk...
-    ("\"\" \"\"|" error)))
+    ("\"\" \"\"|" error)
+    ("|(#\\x) y" error)
+    ("(|#\\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)
+    ("(|\"x\") y" "(|\"x\" y)")
+    ("(\"|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)))
 
 (paredit-test 'paredit-backward-slurp-sexp
   '(("|" error)
@@ -1303,7 +1319,23 @@ Four arguments: the paredit command, the text of the 
buffer
     ("\"\"| \"\"" error)
     ("\"\" |\"\"" error)
     ("\"\" \"|\"" "\"\\\"\\\"|\"")
-    ("\"\" \"\"|" error)))
+    ("\"\" \"\"|" error)
+    ("|x (#\\y)" error)
+    ("x| (#\\y)" error)
+    ("x |(#\\y)" error)
+    ("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)
+    ("x (|\"y\")" "(x |\"y\")")
+    ("x (\"|y\")" "(x \"|y\")" "(\"x |y\")")
+    ("x (\"y|\")" "(x \"y|\")" "(\"x y|\")")
+    ("x (\"y\"|)" "(x \"y\"|)")
+    ("x (\"y\")|" error)))
 
 (defun paredit-canary-indent-method (state indent-point normal-indent)
   (check-parens)



reply via email to

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