Skip to content

Commit

Permalink
tests: add tests that Vp must not append newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
tyru committed May 4, 2018
1 parent 522060d commit aa60a34
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/mode/modeVisualLine.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,27 @@ suite('Mode Visual Line', () => {
end: ['|world', 'hello'],
});

newTest({
title: 'Vp does not append unnecessary newlines (first line)',
start: ['|begin', 'middle', 'end'],
keysPressed: 'yyVp',
end: ['|begin', 'middle', 'end'],
});

newTest({
title: 'Vp does not append unnecessary newlines (middle line)',
start: ['begin', '|middle', 'end'],
keysPressed: 'yyVp',
end: ['begin', '|middle', 'end'],
});

newTest({
title: 'Vp does not append unnecessary newlines (last line)',
start: ['begin', 'middle', '|end'],
keysPressed: 'yyVp',
end: ['begin', 'middle', '|end'],
});

suite('replace text in linewise visual-mode with linewise register content', () => {
newTest({
title: 'yyVp does not change the content but changes cursor position',
Expand Down

0 comments on commit aa60a34

Please sign in to comment.