From 5052eca5cb59389275ff1341525214228bad324a Mon Sep 17 00:00:00 2001 From: Horacio Sanson Date: Tue, 11 Dec 2018 23:44:06 +0900 Subject: Add tests to lacheck linter --- .../test_tex_lacheck_command_callback.vader | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/command_callback/test_tex_lacheck_command_callback.vader (limited to 'test/command_callback/test_tex_lacheck_command_callback.vader') 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' -- cgit v1.2.3