summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor R Campbell <campbell@mumble.net>2011-04-11 18:51:53 +0000
committerTaylor R Campbell <campbell@mumble.net>2011-04-11 18:51:53 +0000
commitde2dc8edb2984ad23c0ff71c8e4ffe9308b50241 (patch)
treea3a9905d908cdfc69e8cedc8570ce25768323e48
parent67a3f00f2a029a74134d3d45079f97296db4e862 (diff)
Add some trivial tests for `paredit-wrap-sexp'.
Ignore-this: 798d9dcc323a87749b2fdd7e1351c7c darcs-hash:20110411185153-00fcc-e45fea206945d21a4483d2b0273932644c1dd977
-rw-r--r--test.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/test.el b/test.el
index 1136c55..107652a 100644
--- a/test.el
+++ b/test.el
@@ -196,6 +196,17 @@ 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-wrap-sexp
+ '(("|foo" "(|foo)")
+ ("|foo bar" "(|foo) bar")
+ ("|foo bar baz" "(|foo) bar baz")
+ ("|foo bar_" "(|foo bar)")
+ ("|foo bar_ baz" "(|foo bar) baz")))
+
+(let ((current-prefix-arg '(4)))
+ (paredit-test 'paredit-wrap-sexp
+ '(("(foo |bar baz)" "(foo (|bar baz))"))))
(paredit-test 'paredit-forward-delete
'(("f|oo" "f|o")