diff options
author | Sumner Evans <sumner.evans98@gmail.com> | 2017-10-25 00:27:40 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-10-25 00:28:06 +0100 |
commit | 7ac07a30b8c54dd44da403830d4ed84992d18656 (patch) | |
tree | 4a69129eb8f72370cbb62cbce7b75648b3ecafad /test/handler | |
parent | 1a5ef969a528c037b865828dedcd482a51d0e004 (diff) | |
download | ale-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.vader | 21 |
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 ', + \ ]) |