aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/movement.rs
diff options
context:
space:
mode:
authorMichael Davis2022-04-08 15:56:50 +0000
committerGitHub2022-04-08 15:56:50 +0000
commit19ff21eaa27141807ee206230d1e6e9f071b8180 (patch)
treed5ba077e8bbf2892a4a24312ba2ea302942106e5 /helix-core/src/movement.rs
parent61d1684a329e933261fbb3863f7cffbda89292ac (diff)
Remove usage of format ident feature from tests (#2028)
Diffstat (limited to 'helix-core/src/movement.rs')
-rw-r--r--helix-core/src/movement.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/helix-core/src/movement.rs b/helix-core/src/movement.rs
index e695bf94..f60b3c83 100644
--- a/helix-core/src/movement.rs
+++ b/helix-core/src/movement.rs
@@ -1293,7 +1293,7 @@ mod test {
let selection =
selection.transform(|r| move_prev_paragraph(text.slice(..), r, 1, Movement::Move));
let actual = crate::test::plain(&s, selection);
- assert_eq!(actual, expected, "\nbefore: `{before:?}`");
+ assert_eq!(actual, expected, "\nbefore: `{:?}`", before);
}
}
@@ -1316,7 +1316,7 @@ mod test {
let selection =
selection.transform(|r| move_prev_paragraph(text.slice(..), r, 2, Movement::Move));
let actual = crate::test::plain(&s, selection);
- assert_eq!(actual, expected, "\nbefore: `{before:?}`");
+ assert_eq!(actual, expected, "\nbefore: `{:?}`", before);
}
}
@@ -1339,7 +1339,7 @@ mod test {
let selection = selection
.transform(|r| move_prev_paragraph(text.slice(..), r, 1, Movement::Extend));
let actual = crate::test::plain(&s, selection);
- assert_eq!(actual, expected, "\nbefore: `{before:?}`");
+ assert_eq!(actual, expected, "\nbefore: `{:?}`", before);
}
}
@@ -1381,7 +1381,7 @@ mod test {
let selection =
selection.transform(|r| move_next_paragraph(text.slice(..), r, 1, Movement::Move));
let actual = crate::test::plain(&s, selection);
- assert_eq!(actual, expected, "\nbefore: `{before:?}`");
+ assert_eq!(actual, expected, "\nbefore: `{:?}`", before);
}
}
@@ -1404,7 +1404,7 @@ mod test {
let selection =
selection.transform(|r| move_next_paragraph(text.slice(..), r, 2, Movement::Move));
let actual = crate::test::plain(&s, selection);
- assert_eq!(actual, expected, "\nbefore: `{before:?}`");
+ assert_eq!(actual, expected, "\nbefore: `{:?}`", before);
}
}
@@ -1427,7 +1427,7 @@ mod test {
let selection = selection
.transform(|r| move_next_paragraph(text.slice(..), r, 1, Movement::Extend));
let actual = crate::test::plain(&s, selection);
- assert_eq!(actual, expected, "\nbefore: `{before:?}`");
+ assert_eq!(actual, expected, "\nbefore: `{:?}`", before);
}
}
}