summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor R Campbell <campbell@mumble.net>2011-04-11 19:04:01 +0000
committerTaylor R Campbell <campbell@mumble.net>2011-04-11 19:04:01 +0000
commit2463273cabb1ac803ef6765fe2d2f9ec4902ce60 (patch)
treedd233b3ba3cadaa92c2e4e59689c1964d1f88009
parent8d87576f5fe082236f8b9bd180f2cad9df01e043 (diff)
Add tests for region deletion across comment boundaries.
Ignore-this: 145763cd2559105046cddd21c3da31d2 darcs-hash:20110411190401-00fcc-44f724d53c52deb35d81b6c3a4bee70ef7d56222
-rw-r--r--test.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/test.el b/test.el
index 3ff0544..3e0770b 100644
--- a/test.el
+++ b/test.el
@@ -251,7 +251,13 @@ Four arguments: the paredit command, the text of the buffer
("(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)"))))
+ ("(foo (bar |baz) (quux _zot) mumble)" "(foo (bar |zot) mumble)")
+ ("(foo bar ;baz| quux\n zot_)" error)
+ ("(foo bar ;baz| quux\n _zot\n mumble)"
+ "(foo bar ;baz|zot\n mumble)")
+ ("(foo bar| baz ;quux (_)\n zot)" error)
+ ("(foo bar| baz ;quux ()_\n zot)"
+ "(foo bar|\n zot)"))))
(defun paredit-canary-indent-method (state indent-point normal-indent)
(check-parens)