summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorSumner Evans <sumner.evans98@gmail.com>2017-10-25 00:27:40 +0100
committerw0rp <devw0rp@gmail.com>2017-10-25 00:28:06 +0100
commit7ac07a30b8c54dd44da403830d4ed84992d18656 (patch)
tree4a69129eb8f72370cbb62cbce7b75648b3ecafad /test/handler
parent1a5ef969a528c037b865828dedcd482a51d0e004 (diff)
downloadale-7ac07a30b8c54dd44da403830d4ed84992d18656.zip
Fix #643 - Add support for write-good for many languages
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_write_good_handler.vader21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/handler/test_write_good_handler.vader b/test/handler/test_write_good_handler.vader
new file mode 100644
index 00000000..b3eeb1b7
--- /dev/null
+++ b/test/handler/test_write_good_handler.vader
@@ -0,0 +1,21 @@
+Execute(The write-good handler should handle the example from the write-good README):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 1,
+ \ 'col': 1,
+ \ 'type': 'W',
+ \ 'text': '"So" adds no meaning',
+ \ }
+ \ ],
+ \ ale#handlers#writegood#Handle(bufnr(''), [
+ \ 'In /tmp/vBYivbZ/6/test.md',
+ \ '=============',
+ \ 'So the cat was stolen.',
+ \ '^^',
+ \ '"So" adds no meaning on line 1 at column 0',
+ \ '-------------',
+ \ 'So the cat was stolen.',
+ \ ' ^^^^^^^^^^',
+ \ '"was stolen" may be passive voice on line 1 at column 11 ',
+ \ ])