]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/handler/test_write_good_handler.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit 'd49e95aa7ba744f0a7f544aca43afdb6aab41f24' as '.vim/bundle/asyncomplete...
[etc/vim.git] / .vim / bundle / ale / test / handler / test_write_good_handler.vader
1 Execute(The write-good handler should handle the example from the write-good README):
2   AssertEqual
3   \ [
4   \   {
5   \     'lnum': 1,
6   \     'col': 1,
7   \     'end_col': 2,
8   \     'type': 'W',
9   \     'text': '"So" adds no meaning',
10   \   },
11   \   {
12   \     'lnum': 1,
13   \     'col': 12,
14   \     'end_col': 21,
15   \     'type': 'W',
16   \     'text': '"was stolen" may be passive voice',
17   \   },
18   \   {
19   \     'lnum': 6,
20   \     'col': 2,
21   \     'end_col': 2,
22   \     'type': 'W',
23   \     'text': '"foo bar" bla',
24   \   },
25   \ ],
26   \ ale#handlers#writegood#Handle(bufnr(''), [
27   \ 'In /tmp/vBYivbZ/6/test.md',
28   \ '=============',
29   \ 'So the cat was stolen.',
30   \ '^^',
31   \ '"So" adds no meaning on line 1 at column 0',
32   \ '-------------',
33   \ 'So the cat was stolen.',
34   \ '           ^^^^^^^^^^',
35   \ '"was stolen" may be passive voice on line 1 at column 11',
36   \ '"foo bar" bla on line 6 at column 1',
37   \ ])