From 69eb2fe86adaba5276e20d01c690d7ddaa8a5f1a Mon Sep 17 00:00:00 2001 From: w0rp Date: Thu, 21 Jun 2018 01:21:11 +0100 Subject: Close #1417 - Support wildcard filetypes for fixers --- test/fix/test_ale_fix.vader | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'test/fix') diff --git a/test/fix/test_ale_fix.vader b/test/fix/test_ale_fix.vader index 3bd23672..417394c3 100644 --- a/test/fix/test_ale_fix.vader +++ b/test/fix/test_ale_fix.vader @@ -257,6 +257,25 @@ Expect(Only the second function should be applied): $b $c +Execute(The * fixers shouldn't be used if an empty list is set for fixers): + let g:ale_fixers.testft = [] + let g:ale_fixers['*'] = ['AddDollars'] + ALEFix + +Expect(Nothing should be changed): + a + b + c + +Execute(* fixers should be used if no filetype is matched): + let g:ale_fixers = {'*': ['AddDollars']} + ALEFix + +Expect(The file should be changed): + $a + $b + $c + Execute(ALEFix should allow commands to be run): if has('win32') " Just skip this test on Windows, we can't run it. -- cgit v1.2.3