summaryrefslogtreecommitdiff
path: root/test.el
diff options
context:
space:
mode:
Diffstat (limited to 'test.el')
-rw-r--r--test.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/test.el b/test.el
index 987048a..ddb61c8 100644
--- a/test.el
+++ b/test.el
@@ -183,4 +183,21 @@ Four arguments: the paredit command, the text of the buffer
;; (";;|foo(" ";|foo(" error)
))
+(defun paredit-canary-indent-method (state indent-point normal-indent)
+ (check-parens)
+ nil)
+
+(put 'paredit-canary 'scheme-indent-function 'paredit-canary-indent-method)
+
+;;; Check for regressions the indentation behaviour of forward slurping
+;;; and barfing.
+
+(paredit-test 'paredit-forward-slurp-sexp
+ '(("(paredit-canary|)\n(lose)"
+ "(paredit-canary|\n (lose))")))
+
+(paredit-test 'paredit-forward-barf-sexp
+ '(("(paredit-canary| ;\n (lose))")
+ ("(paredit-canary| ;\n)\n(lose)")))
+
;++ Killing commands...ugh...