diff options
author | Taylor R Campbell <campbell@mumble.net> | 2013-06-13 18:48:19 +0000 |
---|---|---|
committer | Taylor R Campbell <campbell@mumble.net> | 2013-06-13 18:48:44 +0000 |
commit | 3bdd8402a180623e77b13224807bb8f16df499f4 (patch) | |
tree | b3a971286b9828aab8895dface129cb6af739a8b /test.el | |
parent | 9838fe2ad9843d611437a7cf4074eeece68330e7 (diff) |
Rework paredit-semicolon and add some tests for it.
Diffstat (limited to 'test.el')
-rw-r--r-- | test.el | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -221,7 +221,33 @@ Four arguments: the paredit command, the text of the buffer "(define (square x)\n (* |x x))"))) (paredit-test 'paredit-semicolon - '(("#\\|(" ";|#\\("))) + '(("|" ";|") + ("|foo" ";|foo") + ("f|oo" "f;|oo") + ("fo|o" "fo;|o") + ("foo|" "foo;|") + ("|(foo bar)" ";|(foo bar)") + ("(|foo bar)" "(;|foo bar\n )") + ("(f|oo bar)" "(f;|oo bar\n )") + ("(fo|o bar)" "(fo;|o bar\n )") + ("(foo| bar)" "(foo;| bar\n )") + ("(foo |bar)" "(foo ;|bar\n )") + ("(foo b|ar)" "(foo b;|ar\n )") + ("(foo ba|r)" "(foo ba;|r\n )") + ("(foo bar|)" "(foo bar;|\n )") + ("(foo bar)|" "(foo bar);|") + ("|(foo\n bar)" ";|\n(foo\n bar)") + ("(|foo\n bar)" "(;|foo\n bar)") + ("(f|oo\n bar)" "(f;|oo\n bar)") + ("(fo|o\n bar)" "(fo;|o\n bar)") + ("(foo|\n bar)" "(foo;|\n bar)") + ("(foo\n| bar)" "(foo\n;| bar\n )") + ("(foo\n |bar)" "(foo\n ;|bar\n )") + ("(foo\n b|ar)" "(foo\n b;|ar\n )") + ("(foo\n ba|r)" "(foo\n ba;|r\n )") + ("(foo\n bar|)" "(foo\n bar;|\n )") + ("(foo\n bar)|" "(foo\n bar);|") + ("#\\|(" ";|#\\("))) (paredit-test 'paredit-comment-dwim '(("\"foo|bar;baz\" ;quux" |