@@ -343,7 +343,7 @@ mod test {
344 // cursor on s[o]me, c[h]ars, newl[i]ne
344 // cursor on s[o]me, c[h]ars, newl[i]ne
345 assert_eq!(
345 assert_eq!(
346− get_surround_pos(slice, &selection, '(', 1)
346+ get_surround_pos(slice, &selection, Some('('), 1)
347 .unwrap()
347 .unwrap()
348 .as_slice(),
348 .as_slice(),
349 &[0, 5, 7, 13, 15, 23]
349 &[0, 5, 7, 13, 15, 23]
@@ -359,7 +359,7 @@ mod test {
359 Selection::new(SmallVec::from_slice(&[Range::point(2), Range::point(9)]), 0);
359 Selection::new(SmallVec::from_slice(&[Range::point(2), Range::point(9)]), 0);
360 // cursor on s[o]me, c[h]ars
360 // cursor on s[o]me, c[h]ars
361 assert_eq!(
361 assert_eq!(
362− get_surround_pos(slice, &selection, '(', 1),
362+ get_surround_pos(slice, &selection, Some('('), 1),
363 Err(Error::PairNotFound) // different surround chars
363 Err(Error::PairNotFound) // different surround chars
@@ -369,7 +369,7 @@ mod test {
370 // cursor on [x]x, newli[n]e
370 // cursor on [x]x, newli[n]e
371 assert_eq!(
371 assert_eq!(
372− get_surround_pos(slice, &selection, '(', 1),
372+ get_surround_pos(slice, &selection, Some('('), 1),
373 Err(Error::PairNotFound) // overlapping surround chars
373 Err(Error::PairNotFound) // overlapping surround chars
@@ -377,7 +377,7 @@ mod test {
377 Selection::new(SmallVec::from_slice(&[Range::point(2), Range::point(3)]), 0);
377 Selection::new(SmallVec::from_slice(&[Range::point(2), Range::point(3)]), 0);
378 // cursor on s[o][m]e
378 // cursor on s[o][m]e
379 assert_eq!(
379 assert_eq!(
380− get_surround_pos(slice, &selection, '[', 1),
380+ get_surround_pos(slice, &selection, Some('['), 1),
381 Err(Error::CursorOverlap)
381 Err(Error::CursorOverlap)