From 7eae06d3f33b8c3cb490a3c08986cc8db9f78843 Mon Sep 17 00:00:00 2001 From: Vincent Dahmen Date: Sat, 9 Mar 2019 14:55:54 +0100 Subject: linter/markdown: adds support for languatool (#2155) --- .../test_languagetool_command_callback.vader | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/command_callback/test_languagetool_command_callback.vader (limited to 'test/command_callback/test_languagetool_command_callback.vader') diff --git a/test/command_callback/test_languagetool_command_callback.vader b/test/command_callback/test_languagetool_command_callback.vader new file mode 100644 index 00000000..1b5f0e00 --- /dev/null +++ b/test/command_callback/test_languagetool_command_callback.vader @@ -0,0 +1,15 @@ +Before: + call ale#assert#SetUpLinterTest('text', 'languagetool') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default command should be correct): + AssertLinter 'languagetool', ale#Escape('languagetool') + \ . ' --autoDetect ' + +Execute(Should be able to set a custom executable): + let g:ale_languagetool_executable = 'foobar' + + AssertLinter 'foobar' , ale#Escape('foobar') + \ . ' --autoDetect ' -- cgit v1.2.3