Skip to content

Commit

Permalink
Add test_tex_chktex.vader
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorenar committed Dec 16, 2023
1 parent a79af6f commit a41e593
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/linter/test_tex_chktex.vader
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Before:
call ale#assert#SetUpLinterTest('tex', 'chktex')

After:
call ale#assert#TearDownLinterTest()

Execute(Executable should default to chktex):
AssertLinter 'chktex',
\ ale#Escape('chktex')
\ . ' -v0 -p stdin -q -s TabSize=1'

Execute(The executable should be configurable):
let g:ale_tex_chktex_executable = 'bin/foo'

AssertLinter 'bin/foo',
\ ale#Escape('bin/foo')
\ . ' -v0 -p stdin -q -s TabSize=1'

Execute(The options should be configurable):
let b:ale_tex_chktex_options = '--something'

AssertLinter 'chktex',
\ ale#Escape('chktex')
\ . ' -v0 -p stdin -q -s TabSize=1'
\ . ' --something'

0 comments on commit a41e593

Please sign in to comment.