mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 05:41:16 -03:00
try_apply_edit_to_autosuggestion: new test
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user