summaryrefslogtreecommitdiff
path: root/test/completion/test_public_completion_api.vader
diff options
context:
space:
mode:
authordelphinus <me@delphinus.dev>2019-06-19 15:25:58 +0900
committerdelphinus <me@delphinus.dev>2019-06-19 15:34:53 +0900
commit4e1c46947dca552d86cd49a80714237801e01998 (patch)
tree212ee23e846845b62f814c6cce7ec523e1ea44d4 /test/completion/test_public_completion_api.vader
parente0f8304860a8db06bca3ec8cdbd58f3852e5e789 (diff)
downloadale-4e1c46947dca552d86cd49a80714237801e01998.zip
Add & fix tests for added funcs
Diffstat (limited to 'test/completion/test_public_completion_api.vader')
-rw-r--r--test/completion/test_public_completion_api.vader4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/completion/test_public_completion_api.vader b/test/completion/test_public_completion_api.vader
index befbb436..c3cd42b8 100644
--- a/test/completion/test_public_completion_api.vader
+++ b/test/completion/test_public_completion_api.vader
@@ -32,6 +32,10 @@ Execute(ale#completion#GetCompletionPosition() should return the position in the
" This is the first character of 'bar'
AssertEqual 4, ale#completion#GetCompletionPosition()
+Execute(ale#completion#GetCompletionPositionForDeoplete() should return the position on the given input string):
+ " This is the first character of 'bar'
+ AssertEqual 4, ale#completion#GetCompletionPositionForDeoplete('foo bar')
+
Execute(ale#completion#CanProvideCompletions should return 0 when no completion sources are available):
AssertEqual 0, ale#completion#CanProvideCompletions()