Skip to content

Commit

Permalink
init unit test that identifies the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschnau committed Dec 1, 2018
1 parent c607f60 commit 7c1cec4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/jumpTracker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,20 @@ suite('Record and navigate jumps', () => {
end: ['|start', '{', 'a1', 'b1', 'a2', 'b2', '}', 'end'],
jumps: ['start', '{', 'b1', 'a2', 'a1'],
});

newJumpTest({
title: 'Can enter number to jump back multiple times',
start: ['|start', '{', 'a1', 'b1', 'a2', 'b2', '}', 'end'],
keysPressed: 'Gggj%2<C-o>',
end: ['start', '{', 'a1', 'b1', 'a2', 'b2', '}', '|end'],
jumps: ['start', '|end', '{', '}'],
});
newJumpTest({
title: 'TODO name this test after https://github.com/VSCodeVim/Vim/issues/3138',
start: ['|start', 'var foo = {"a", "b"}', 'end'],
keysPressed: 'jf{%r]``r[',
end: ['start', 'var foo = |["a", "b"]', 'end'],
jumps: [],
});
});

suite('Can shifts jump lines up after deleting a line with Visual Line Mode', () => {
Expand Down

0 comments on commit 7c1cec4

Please sign in to comment.