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_nix_handler.vader

28 lines
713 B
Text
Raw Permalink Normal View History

2017-03-05 20:34:58 +00:00
Execute(The nix handler should parse nix-instantiate error messages correctly):
runtime ale_linters/nix/nix.vim
AssertEqual
\ [
\ {
\ 'lnum': 23,
\ 'col': 14,
\ 'text': 'error: syntax error, unexpected IN',
\ 'type': 'E',
\ },
\ {
\ 'lnum': 3,
\ 'col': 12,
\ 'text': 'error: syntax error, unexpected ''='', expecting '';''',
\ 'type': 'E',
\ },
\
\ ],
\ ale_linters#nix#nix#Handle(47, [
\ 'This line should be ignored',
\ 'error: syntax error, unexpected IN, at /path/to/filename.nix:23:14',
\ 'error: syntax error, unexpected ''='', expecting '';'', at /path/to/filename.nix:3:12',
\ ])
After:
call ale#linter#Reset()