diff options
author | w0rp <devw0rp@gmail.com> | 2019-06-10 22:41:20 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-06-10 22:41:20 +0100 |
commit | ce91972c947dbd3f6fe9408b8ae89b824b4c4fa7 (patch) | |
tree | 4c8429582b3746c29c174dee499cdc133b37063c /test/test_linter_retrieval.vader | |
parent | 168768b32667b244e0afdc8da851d91ab95d6e2f (diff) | |
download | ale-ce91972c947dbd3f6fe9408b8ae89b824b4c4fa7.zip |
Fix #1727 - Replace previoulsy defined linters with matching names
Diffstat (limited to 'test/test_linter_retrieval.vader')
-rw-r--r-- | test/test_linter_retrieval.vader | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_linter_retrieval.vader b/test/test_linter_retrieval.vader index 6f9b3db4..88885b71 100644 --- a/test/test_linter_retrieval.vader +++ b/test/test_linter_retrieval.vader @@ -158,6 +158,14 @@ Execute (Buffer-local overrides for aliases should be used): AssertEqual [g:testlinter1, g:testlinter2], ale#linter#Get('testft1') +Execute (Linters new linters with the same name should replace old ones): + let g:testlinter1.name = g:testlinter2.name + + call ale#linter#Define('testft1', g:testlinter1) + call ale#linter#Define('testft1', g:testlinter2) + + AssertEqual [g:testlinter2], ale#linter#GetAll(['testft1']) + Execute (Linters should be loaded from disk appropriately): call ale#linter#Reset() AssertEqual [{'name': 'testlinter', 'output_stream': 'stdout', 'executable': 'testlinter', 'command': 'testlinter', 'callback': 'testCB', 'read_buffer': 1, 'lint_file': 0, 'aliases': [], 'lsp': ''}], ale#linter#Get('testft') |