diff options
author | Taylor R Campbell <campbell@mumble.net> | 2011-04-11 18:53:19 +0000 |
---|---|---|
committer | Taylor R Campbell <campbell@mumble.net> | 2011-04-11 18:53:19 +0000 |
commit | 23afafcb5562b7c7ce8fae124ce1a4237c0f9b97 (patch) | |
tree | 970c16bcb11d6bf642ef9319a31c4e0f559619e0 /test.el | |
parent | de2dc8edb2984ad23c0ff71c8e4ffe9308b50241 (diff) |
Add some trivial tests for region deletion/killing commands.
Ignore-this: 5ba090d8b5214e6b53419108126e74f7
darcs-hash:20110411185319-00fcc-9d494301c54ca406124f243a884c163dc92be27c
Diffstat (limited to 'test.el')
-rw-r--r-- | test.el | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -239,6 +239,19 @@ Four arguments: the paredit command, the text of the buffer (paredit-test 'paredit-kill '((";foo|\n(bar)\n" ";foo|(bar)\n") (";foo|\n(bar\n baz)\n" error))) + +(dolist (command '(paredit-delete-region paredit-kill-region)) + ;++ Need to check whether `paredit-kill-region' updates the kill ring + ;++ correctly. + (paredit-test command + '(("|foo" error) + ("|foo_" "|") + ("|(foo)_" "|") + (";;; f|oo (bar ;_baz\n(zot)\n" ";;; f|baz\n(zot)\n") + ("(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)")))) (defun paredit-canary-indent-method (state indent-point normal-indent) (check-parens) |