mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-22 03:51:26 +08:00
Add Vader tests
This commit is contained in:
19
test/handler/test_checkmake_handler.vader
Normal file
19
test/handler/test_checkmake_handler.vader
Normal file
@@ -0,0 +1,19 @@
|
||||
Execute(Parsing checkmake errors should work):
|
||||
runtime ale_linters/make/checkmake.vim
|
||||
silent file Makefile
|
||||
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'bufnr': 42,
|
||||
\ 'lnum': 1,
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'woops: an error has occurred',
|
||||
\ }
|
||||
\ ],
|
||||
\ ale_linters#make#checkmake#Handle(42, [
|
||||
\ 'This shouldnt match',
|
||||
\ '1:woops:an error has occurred',
|
||||
\ ])
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
Reference in New Issue
Block a user