Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ascandella committed Jul 20, 2016
1 parent 318f009 commit 0195225
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions test/mode/modeNormal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,46 @@ suite("Mode Normal", () => {
endMode: ModeName.Insert
});

newTest({
title: "Can handle 'ci\"' starting behind the quoted word",
start: ['|one "two"'],
keysPressed: 'ci"',
end: ['one "|"'],
endMode: ModeName.Insert
});

newTest({
title: "Can handle 'ca\"' starting behind the quoted word",
start: ['|one "two"'],
keysPressed: 'ca"',
end: ['one |'],
endMode: ModeName.Insert
});

newTest({
title: "Can handle 'ca\"' starting on the opening quote",
start: ['one |"two"'],
keysPressed: 'ca"',
end: ['one |'],
endMode: ModeName.Insert
});

newTest({
title: "Can handle 'ca\"' starting on the closing quote",
start: ['one "two|"'],
keysPressed: 'ca"',
end: ['one |'],
endMode: ModeName.Insert
});

newTest({
title: "will fail when ca\" ahead of quoted string",
start: ['"one" |two'],
keysPressed: 'ca"',
end: ['"one" |two'],
endMode: ModeName.Normal
});

newTest({
title: "Can handle 'ca`' inside word",
start: ['one `t|wo`'],
Expand Down

0 comments on commit 0195225

Please sign in to comment.