mirror of https://github.com/helix-editor/helix
test: handle error by unwrapping
parent
1501d0ad55
commit
a82e00d70c
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue