This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/handler/test_write_good_handler.vader

21 lines
570 B
Text

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 ',
\ ])