try_apply_edit_to_autosuggestion: new test

This commit is contained in:
Johannes Altmanninger
2026-01-26 02:09:38 +11:00
parent 1854d03b95
commit eda1694581

View File

@@ -7436,6 +7436,24 @@ macro_rules! validate {
})
);
validate!(
"Case-insensitive matching deletion",
Autosuggestion {
text: L!("Echo hest").to_owned(),
search_string_range: 0..4,
icase_matched_codepoints: Some(4),
is_whole_item_from_history: true,
},
"echo",
Edit::new(3..4, L!("").to_owned()),
Some(Autosuggestion {
text: L!("Echo hest").to_owned(),
search_string_range: 0..3,
icase_matched_codepoints: Some(4),
is_whole_item_from_history: true,
})
);
validate!(
"Lowercase mapping is only partially matched",
Autosuggestion {