summaryrefslogtreecommitdiff
path: root/test/completion/test_completion_prefixes.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-04-22 12:28:12 +0100
committerw0rp <devw0rp@gmail.com>2018-04-22 12:28:19 +0100
commitd8a673515a8ec9fd102d6da8d8fa499ae2770f11 (patch)
tree838f675d6ec508dd29b1f91a364b36d8326066a3 /test/completion/test_completion_prefixes.vader
parent20241c87ef9f033e2ac2f44f5bb99af358ab44b2 (diff)
downloadale-d8a673515a8ec9fd102d6da8d8fa499ae2770f11.zip
Close #1162 - Implement completion support with LSP servers
Diffstat (limited to 'test/completion/test_completion_prefixes.vader')
-rw-r--r--test/completion/test_completion_prefixes.vader17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/completion/test_completion_prefixes.vader b/test/completion/test_completion_prefixes.vader
index 8ac29326..a88e978d 100644
--- a/test/completion/test_completion_prefixes.vader
+++ b/test/completion/test_completion_prefixes.vader
@@ -17,3 +17,20 @@ Execute(Completion should not be done after parens in TypeScript):
Execute(Completion prefixes should work for other filetypes):
AssertEqual 'ab', ale#completion#GetPrefix('xxxyyyzzz', 3, 14)
+
+Given rust():
+ let abc = y.
+ let abc = String::
+ let foo = (ab)
+
+Execute(Completion should be done after dots in Rust):
+ AssertEqual '.', ale#completion#GetPrefix(&filetype, 1, 13)
+
+Execute(Completion should be done after colons in Rust):
+ AssertEqual '::', ale#completion#GetPrefix(&filetype, 2, 19)
+
+Execute(Completion should be done after words in parens in Rust):
+ AssertEqual 'ab', ale#completion#GetPrefix(&filetype, 3, 14)
+
+Execute(Completion should not be done after parens in Rust):
+ AssertEqual '', ale#completion#GetPrefix(&filetype, 3, 15)