first goto tests

This commit is contained in:
David Halter
2013-08-22 21:54:57 +04:30
parent c6de6c3425
commit 53137b85a7
2 changed files with 30 additions and 27 deletions

30
test/goto.vim Normal file
View File

@@ -0,0 +1,30 @@
describe 'goto_simple'
before
new
put =[
\ 'def a(): pass',
\ 'b = a',
\ 'c = b',
\ ]
normal! G$
Expect line('.') == 3
end
after
close!
end
it 'goto_definitions'
Expect range(1) == [0]
end
it 'goto_assignments'
normal! <leader>g
Expect line('.') == 2
normal! $
normal! <leader>g
Expect line('.') == 1
end
end
" vim: et:ts=4:sw=4