vim: Add more tests for replace with register (#25316)
Closes #ISSUE Add more tests Release Notes: - N/A
This commit is contained in:
parent
afb0fd609b
commit
e83ebd1fab
1 changed files with 16 additions and 0 deletions
|
@ -943,6 +943,22 @@ mod test {
|
||||||
"},
|
"},
|
||||||
Mode::Normal,
|
Mode::Normal,
|
||||||
);
|
);
|
||||||
|
cx.simulate_keystrokes("g r r");
|
||||||
|
cx.assert_state(
|
||||||
|
indoc! {"
|
||||||
|
fisˇh
|
||||||
|
two three
|
||||||
|
"},
|
||||||
|
Mode::Normal,
|
||||||
|
);
|
||||||
|
cx.simulate_keystrokes("j w g r $");
|
||||||
|
cx.assert_state(
|
||||||
|
indoc! {"
|
||||||
|
fish
|
||||||
|
two fisˇh
|
||||||
|
"},
|
||||||
|
Mode::Normal,
|
||||||
|
);
|
||||||
let clipboard: Register = cx.read_from_clipboard().unwrap().into();
|
let clipboard: Register = cx.read_from_clipboard().unwrap().into();
|
||||||
assert_eq!(clipboard.text, "fish");
|
assert_eq!(clipboard.text, "fish");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue