diff options
author | w0rp <devw0rp@gmail.com> | 2018-09-07 19:27:42 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-09-07 19:27:42 +0100 |
commit | 0ae4ea23c8573f9c693fcd5cd5ff9a3acc795b58 (patch) | |
tree | d76944974e4ed34400966d640f9fc88caaee5b0b /test/completion/test_completion_prefixes.vader | |
parent | e0fe97e0a8e929bef9bd4d677c066968be70e914 (diff) | |
download | ale-0ae4ea23c8573f9c693fcd5cd5ff9a3acc795b58.zip |
#1888 Support names with minuses in Clojure and Lisp
Diffstat (limited to 'test/completion/test_completion_prefixes.vader')
-rw-r--r-- | test/completion/test_completion_prefixes.vader | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/completion/test_completion_prefixes.vader b/test/completion/test_completion_prefixes.vader index 0b2cfeaf..3f2cab15 100644 --- a/test/completion/test_completion_prefixes.vader +++ b/test/completion/test_completion_prefixes.vader @@ -43,3 +43,23 @@ Execute(Completion should be done after words in parens in Rust): Execute(Completion should not be done after parens in Rust): AssertEqual '', ale#completion#GetPrefix(&filetype, 3, 15) + +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) |