add integration test for adding mark

pull/10905/head
Sam Vente 6 months ago
parent 148f1c7c68
commit bb7e922ff9
No known key found for this signature in database

@ -65,6 +65,31 @@ async fn insert_to_normal_mode_cursor_position() -> anyhow::Result<()> {
Ok(()) Ok(())
} }
#[tokio::test(flavor = "multi_thread")]
async fn register_mark() -> anyhow::Result<()> {
// add a mark and then immediately paste it out
test((
indoc! {"\
Lorem
ipsum
dolor#[|
sit]#
amet."
},
"1\"^p",
indoc! {"\
Lorem
ipsum
dolor
sit#[|1:(24,19)]#
amet."
},
))
.await?;
Ok(())
}
#[tokio::test(flavor = "multi_thread")] #[tokio::test(flavor = "multi_thread")]
async fn surround_by_character() -> anyhow::Result<()> { async fn surround_by_character() -> anyhow::Result<()> {
// Only pairs matching the passed character count // Only pairs matching the passed character count

Loading…
Cancel
Save