summaryrefslogtreecommitdiff
path: root/test/completion/test_public_completion_api.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-05-28 20:03:35 +0100
committerw0rp <devw0rp@gmail.com>2019-05-28 20:03:35 +0100
commit67d7caee304a330cee8e1f8eb7d805da327a5b34 (patch)
tree2d2ef94db9c48146f9d2be90710f41642074fd95 /test/completion/test_public_completion_api.vader
parentbc0abc3b9628103d3a75596bfabf8ba3a1a61c6d (diff)
downloadale-67d7caee304a330cee8e1f8eb7d805da327a5b34.zip
Fix #2535 - Automatically emit <C-x><C-o> less to prevent <C-o> issues
Diffstat (limited to 'test/completion/test_public_completion_api.vader')
-rw-r--r--test/completion/test_public_completion_api.vader21
1 files changed, 0 insertions, 21 deletions
diff --git a/test/completion/test_public_completion_api.vader b/test/completion/test_public_completion_api.vader
index d4db2d6f..befbb436 100644
--- a/test/completion/test_public_completion_api.vader
+++ b/test/completion/test_public_completion_api.vader
@@ -3,42 +3,21 @@ Before:
unlet! b:ale_linters
unlet! b:ale_completion_info
- unlet! b:ale_completion_response
- unlet! b:ale_completion_parser
unlet! b:ale_completion_result
- function! Identity(x) abort
- return a:x
- endfunction
-
After:
- delfunction Identity
-
call ale#linter#Reset()
unlet! b:ale_linters
unlet! b:ale_completion_info
- unlet! b:ale_completion_response
- unlet! b:ale_completion_parser
unlet! b:ale_completion_result
Execute(ale#completion#GetCompletionResult() should return v:null when there are no results):
AssertEqual v:null, ale#completion#GetCompletionResult()
-Execute(ale#completion#GetCompletionResult() should parse the result when it has yet to be parsed):
- let b:ale_completion_response = [1]
- let b:ale_completion_parser = 'Identity'
-
- AssertEqual [1], ale#completion#GetCompletionResult()
- Assert !exists('b:ale_completion_response')
- Assert !exists('b:ale_completion_parser')
- AssertEqual [1], b:ale_completion_result
-
Execute(ale#completion#GetCompletionResult() should return a result computed previously):
let b:ale_completion_result = [1]
- Assert !exists('b:ale_completion_response')
- Assert !exists('b:ale_completion_parser')
AssertEqual [1], ale#completion#GetCompletionResult()
Execute(ale#completion#GetCompletionPosition() should return 0 when there is no completion information):