summaryrefslogtreecommitdiff
path: root/test/handler/test_write_good_handler.vader
blob: b3eeb1b753073df1a24b2de4186927ba8d45c08f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 ',
  \ ])