test: handle error by unwrapping

pull/12706/head
Nikita Revenco 2025-01-28 13:50:02 +00:00
parent 1501d0ad55
commit a82e00d70c
1 changed files with 1 additions and 1 deletions

View File

@ -489,7 +489,7 @@ mod test {
]; ];
for (before, expected) in tests { for (before, expected) in tests {
let (s, selection) = crate::test::parse_selection_string(before); let (s, selection) = crate::test::parse_selection_string(before).unwrap();
let text = Rope::from(s.as_str()); let text = Rope::from(s.as_str());
let selection = selection let selection = selection
.transform(|r| textobject_paragraph(text.slice(..), r, TextObject::Around, 1)); .transform(|r| textobject_paragraph(text.slice(..), r, TextObject::Around, 1));