Add test for NimUsages
This commit is contained in:
parent
115215ecf7
commit
9c911bdc1f
1 changed files with 25 additions and 0 deletions
25
tests/tests/vim/usages.vader
Normal file
25
tests/tests/vim/usages.vader
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
Given nim:
|
||||||
|
proc print(str: string) = echo str
|
||||||
|
echo "this"
|
||||||
|
print "test"
|
||||||
|
echo "is"
|
||||||
|
print "very"
|
||||||
|
echo "nice"
|
||||||
|
|
||||||
|
Do:
|
||||||
|
:saveas! vader_workbench.nim\<cr>
|
||||||
|
ggw
|
||||||
|
:NimUsages\<cr>
|
||||||
|
G
|
||||||
|
|
||||||
|
Then:
|
||||||
|
AssertEqual line("."), 3
|
||||||
|
|
||||||
|
Do:
|
||||||
|
:cclose\<cr>
|
||||||
|
gg$bb
|
||||||
|
:NimUsages\<cr>
|
||||||
|
G
|
||||||
|
|
||||||
|
Then:
|
||||||
|
AssertEqual line("."), 4
|
||||||
Loading…
Add table
Add a link
Reference in a new issue