#3633 - Move linter tests into test/linter

This commit is contained in:
w0rp
2021-03-21 00:21:49 +00:00
parent 35caaecc9f
commit f7852dbd0a
256 changed files with 40 additions and 144 deletions

View File

@@ -1,14 +1,13 @@
Before:
runtime ale_linters/tex/lacheck.vim
call ale#test#SetDirectory('/testplugin/test')
call ale#test#SetDirectory('/testplugin/test/handler')
After:
call ale#linter#Reset()
call ale#test#RestoreDirectory()
Execute(The lacheck handler should parse lines correctly):
call ale#test#SetFilename('command_callback/../test-files/tex/sample1.tex')
call ale#test#SetFilename('../test-files/tex/sample1.tex')
AssertEqual
\ [
@@ -24,7 +23,6 @@ Execute(The lacheck handler should parse lines correctly):
\ ])
Execute(The lacheck handler should ignore errors from input files):
call ale#test#SetFilename('ale_test.tex')
AssertEqual