tests: test arrow mappings
This commit is contained in:
parent
7ed3cc2fc2
commit
25601aa8a1
@ -62,6 +62,34 @@ function! s:TestMovementBasic()"{{{
|
|||||||
" Move up
|
" Move up
|
||||||
normal k
|
normal k
|
||||||
Assert g:CurrentLineContains("[3]")
|
Assert g:CurrentLineContains("[3]")
|
||||||
|
|
||||||
|
|
||||||
|
" Test arrow mappings
|
||||||
|
Assert g:CurrentLineContains("[3]")
|
||||||
|
|
||||||
|
" Move down
|
||||||
|
exec "normal \<down>"
|
||||||
|
Assert g:CurrentLineContains("[2]")
|
||||||
|
|
||||||
|
" Move down
|
||||||
|
exec "normal \<down>"
|
||||||
|
Assert g:CurrentLineContains("[1]")
|
||||||
|
|
||||||
|
" Move down
|
||||||
|
exec "normal \<down>"
|
||||||
|
Assert g:CurrentLineContains("[0]")
|
||||||
|
|
||||||
|
" Move up
|
||||||
|
exec "normal \<up>"
|
||||||
|
Assert g:CurrentLineContains("[1]")
|
||||||
|
|
||||||
|
" Move up
|
||||||
|
exec "normal \<up>"
|
||||||
|
Assert g:CurrentLineContains("[2]")
|
||||||
|
|
||||||
|
" Move up
|
||||||
|
exec "normal \<up>"
|
||||||
|
Assert g:CurrentLineContains("[3]")
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
|
||||||
function! s:TestMovementLinear()"{{{
|
function! s:TestMovementLinear()"{{{
|
||||||
@ -117,4 +145,8 @@ function! s:TestMovementLinear()"{{{
|
|||||||
" Move up
|
" Move up
|
||||||
normal k
|
normal k
|
||||||
Assert g:CurrentLineContains("[3]")
|
Assert g:CurrentLineContains("[3]")
|
||||||
|
|
||||||
|
" Move up
|
||||||
|
normal k
|
||||||
|
Assert g:CurrentLineContains("[4]")
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user