]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/fix/test_ale_fix_completion.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit 'd49e95aa7ba744f0a7f544aca43afdb6aab41f24' as '.vim/bundle/asyncomplete...
[etc/vim.git] / .vim / bundle / ale / test / fix / test_ale_fix_completion.vader
1 Execute (List of available fixers is empty):
2   call ale#fix#registry#Clear()
3
4 Then (List of applicable fixers for python file is empty):
5   AssertEqual [], ale#fix#registry#GetApplicableFixers('python')
6
7 Execute (Add ruby fixer):
8   call ale#fix#registry#Add('ruby_fixer', 'fixer_fun', ['ruby'], 'ruby fixer')
9
10 Then (List of applicable fixers for python file is still empty):
11   AssertEqual [], ale#fix#registry#GetApplicableFixers('python')
12
13 Execute (Add generic fixer):
14   call ale#fix#registry#Add('generic_fixer', 'fixer_fun', [], 'generic fixer')
15
16 Then (Generic fixer should be returned as applicable for python file):
17   AssertEqual ['generic_fixer'], ale#fix#registry#GetApplicableFixers('python')
18
19 Execute (Add python fixer):
20   call ale#fix#registry#Add('python_fixer', 'fixer_func', ['python'], 'python fixer')
21
22 Then (List of fixers should contain both generic and python fixers):
23   AssertEqual ['generic_fixer', 'python_fixer'], ale#fix#registry#GetApplicableFixers('python')