summaryrefslogtreecommitdiff
path: root/test/linter/test_tex_chktex.vader
blob: 7052c367382b55a0aade1c9840ebe6fa134af84c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Before:
  call ale#assert#SetUpLinterTest('tex', 'chktex')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default command should be correct):
  AssertLinter 'chktex',
  \ ale#Escape('chktex')
  \   . ' -v0 -p stdin -q -s TabSize=1'
  \   . ' -I'

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'
  \   . ' -I'

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'