diff options
author | Horacio Sanson <horacio@allm.net> | 2018-12-11 23:44:06 +0900 |
---|---|---|
committer | Horacio Sanson <horacio@allm.net> | 2018-12-11 23:44:06 +0900 |
commit | 5052eca5cb59389275ff1341525214228bad324a (patch) | |
tree | 6ffb0acf40f7d20ae7f31a85d81a58f16dbf9b45 /test/command_callback | |
parent | a6a8c90126e83378280a21a01f947ef0a8f1af8a (diff) | |
download | ale-5052eca5cb59389275ff1341525214228bad324a.zip |
Add tests to lacheck linter
Diffstat (limited to 'test/command_callback')
-rw-r--r-- | test/command_callback/test_tex_lacheck_command_callback.vader | 13 | ||||
-rw-r--r-- | test/command_callback/tex_paths/sample1.tex | 0 | ||||
-rw-r--r-- | test/command_callback/tex_paths/sample2.tex | 0 |
3 files changed, 13 insertions, 0 deletions
diff --git a/test/command_callback/test_tex_lacheck_command_callback.vader b/test/command_callback/test_tex_lacheck_command_callback.vader new file mode 100644 index 00000000..b404cc78 --- /dev/null +++ b/test/command_callback/test_tex_lacheck_command_callback.vader @@ -0,0 +1,13 @@ +Before: + call ale#assert#SetUpLinterTest('tex', 'lacheck') + +After: + call ale#assert#TearDownLinterTest() + +Execute(Executable should default to lacheck): + AssertLinter 'lacheck', ale#Escape('lacheck') . ' %t' + +Execute(Should be able to set a custom executable): + let g:ale_tex_lacheck_executable = 'bin/foo' + + AssertLinter 'bin/foo' , ale#Escape('bin/foo') . ' %t' diff --git a/test/command_callback/tex_paths/sample1.tex b/test/command_callback/tex_paths/sample1.tex new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/command_callback/tex_paths/sample1.tex diff --git a/test/command_callback/tex_paths/sample2.tex b/test/command_callback/tex_paths/sample2.tex new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/command_callback/tex_paths/sample2.tex |