1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:20:05 +08:00
SpaceVim/bundle/CompleteParameter.vim/vader/jumpable.vader
2020-08-29 21:14:10 +08:00

36 lines
568 B
Plaintext

Given go(1):
a
Execute:
call cursor(1, 1)
AssertEqual 0, cmp#jumpable(1)
AssertEqual 0, cmp#jumpable(0)
Given go(2):
func a()
Execute:
call cursor(1, 6)
AssertEqual 0, cmp#jumpable(1)
AssertEqual 1, cmp#jumpable(0)
call cursor(1, 7)
AssertEqual 1, cmp#jumpable(1)
AssertEqual 1, cmp#jumpable(0)
Given go(3):
func a(a)
Execute:
call cursor(1, 8)
AssertEqual 1, cmp#jumpable(1)
AssertEqual 1, cmp#jumpable(0)
Given go(3):
func a(a, b)
Execute:
call cursor(1, 8)
AssertEqual 1, cmp#jumpable(1)
AssertEqual 1, cmp#jumpable(0)