Skip to content

Commit

Permalink
tests: Fix jump to sibling node tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kristijanhusak committed May 1, 2024
1 parent e1585fd commit 14134c6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/test-goto-sibling-and-node.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ function! s:suite.should_jump_to_first_last_sibling() abort
norm 2jojo
call s:expect(line('.')).to_equal(5)
exe "norm \<C-j>"
call s:expect(line('.')).to_equal(12)
call s:expect(line('.')).to_equal(13)
exe "norm \<C-k>"
call s:expect(line('.')).to_equal(5)
norm j
call s:expect(line('.')).to_equal(6)
exe "norm \<C-j>"
call s:expect(line('.')).to_equal(11)
call s:expect(line('.')).to_equal(12)
exe "norm \<C-k>"
call s:expect(line('.')).to_equal(6)
exe "norm \<C-j>"
call s:expect(line('.')).to_equal(11)
call s:expect(line('.')).to_equal(12)
endfunction

function! s:suite.should_jump_to_parent_child_node()
Expand Down Expand Up @@ -63,21 +63,21 @@ function! s:suite.should_jump_to_prev_next_sibling()
norm k
call s:expect(line('.')).to_equal(5)
norm J
call s:expect(line('.')).to_equal(12)
call s:expect(line('.')).to_equal(13)
norm K
call s:expect(line('.')).to_equal(5)
endfunction

function! s:suite.should_jump_to_last_line()
norm! gg
norm J
call s:expect(line('.')).to_equal(13)
norm oj
call s:expect(line('.')).to_equal(14)
norm oj
call s:expect(line('.')).to_equal(15)
exe "norm \<C-j>"
call s:expect(line('.')).to_equal(16)
call s:expect(line('.')).to_equal(17)
exe "norm \<C-k>"
call s:expect(line('.')).to_equal(14)
call s:expect(line('.')).to_equal(15)
exe "norm \<C-j>"
call s:expect(line('.')).to_equal(16)
call s:expect(line('.')).to_equal(17)
endfunction

0 comments on commit 14134c6

Please sign in to comment.