2017-11-26 12:24:18 +00:00
|
|
|
Given typescript():
|
|
|
|
let abc = y.
|
|
|
|
let foo = ab
|
|
|
|
let foo = (ab)
|
2018-05-28 14:16:15 +00:00
|
|
|
let string1 = '
|
|
|
|
let string2 = "
|
2017-11-26 12:24:18 +00:00
|
|
|
|
|
|
|
Execute(Completion should be done after dots in TypeScript):
|
|
|
|
AssertEqual '.', ale#completion#GetPrefix(&filetype, 1, 13)
|
|
|
|
|
|
|
|
Execute(Completion should be done after words in TypeScript):
|
|
|
|
AssertEqual 'ab', ale#completion#GetPrefix(&filetype, 2, 13)
|
|
|
|
|
|
|
|
Execute(Completion should be done after words in parens in TypeScript):
|
|
|
|
AssertEqual 'ab', ale#completion#GetPrefix(&filetype, 3, 14)
|
|
|
|
|
|
|
|
Execute(Completion should not be done after parens in TypeScript):
|
|
|
|
AssertEqual '', ale#completion#GetPrefix(&filetype, 3, 15)
|
|
|
|
|
2018-05-28 14:16:15 +00:00
|
|
|
Execute(Completion should be done after strings in TypeScript):
|
|
|
|
AssertEqual '''', ale#completion#GetPrefix(&filetype, 4, 16)
|
|
|
|
AssertEqual '"', ale#completion#GetPrefix(&filetype, 5, 16)
|
|
|
|
|
|
|
|
Execute(Completion prefixes should work for other filetypes):
|
|
|
|
AssertEqual 'ab', ale#completion#GetPrefix('xxxyyyzzz', 3, 14)
|
|
|
|
|
2017-11-26 12:24:18 +00:00
|
|
|
Execute(Completion prefixes should work for other filetypes):
|
|
|
|
AssertEqual 'ab', ale#completion#GetPrefix('xxxyyyzzz', 3, 14)
|
2018-04-22 11:28:12 +00:00
|
|
|
|
|
|
|
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)
|
2018-09-07 18:27:42 +00:00
|
|
|
|
|
|
|
Given lisp():
|
|
|
|
(minus-name
|
|
|
|
(full-name)
|
|
|
|
|
|
|
|
Execute(Completion should be done for function names with minuses in Lisp):
|
|
|
|
AssertEqual 'minus-name', ale#completion#GetPrefix(&filetype, 1, 12)
|
|
|
|
|
|
|
|
Execute(Completion should not be done after parens in Lisp):
|
|
|
|
AssertEqual '', ale#completion#GetPrefix(&filetype, 2, 12)
|
|
|
|
|
|
|
|
Given clojure():
|
|
|
|
(minus-name
|
|
|
|
(full-name)
|
|
|
|
|
|
|
|
Execute(Completion should be done for function names with minuses in Clojure):
|
|
|
|
AssertEqual 'minus-name', ale#completion#GetPrefix(&filetype, 1, 12)
|
|
|
|
|
|
|
|
Execute(Completion should not be done after parens in Clojure):
|
|
|
|
AssertEqual '', ale#completion#GetPrefix(&filetype, 2, 12)
|