Add autocomplete test

Fixes #23 Write tests for autocompletion
This commit is contained in:
baabelfish 2016-03-17 01:00:16 +02:00
commit 10bd41db5a
3 changed files with 40 additions and 4 deletions

View file

@ -0,0 +1,12 @@
Given nim:
5.
Execute:
set buftype=
saveas! autocomplete.nim
Do:
A\<c-x>\<c-o>\<c-n>\<esc>
Expect:
5.alloc

View file

@ -7,9 +7,15 @@ Given nim:
Execute:
set buftype=""
saveas! vader_workbench.nim
w!
norm G^
NimDefinition
Then:
AssertEqual 2, line(".")
Do:
G^
\<c-]>
Then:
AssertEqual 2, line(".")