Run rustfmt on the new changes.
@@ -173,13 +173,20 @@ mod test {
let src = "one\ntwo\nthree\nfour\nfive\n";
let dest = "one\ntwo\ntrois\nfour\nfive\n";
let diff = make_diff(src, dest, 1);
- assert_eq!(diff, vec![Mismatch { line_number: 2,
+ assert_eq!(
+ diff,
+ vec![
+ Mismatch {
+ line_number: 2,
lines: vec![
Context("two".into()),
Resulting("three".into()),
Expected("trois".into()),
Context("four".into()),
- ] }]);
+ ],
+ },
+ ]
+ );
}
#[test]
@@ -187,19 +194,28 @@ mod test {
let src = "one\ntwo\nthree\nfour\nfive\nsix\nseven\n";
let dest = "one\ntwo\ntrois\nfour\ncinq\nsix\nseven\n";
let diff = make_diff(src, dest, 1);
- assert_eq!(diff, vec![Mismatch { line_number: 2,
+ assert_eq!(
+ diff,
+ vec![
+ Mismatch {
+ line_number: 2,
lines: vec![
Context("two".into()),
Resulting("three".into()),
Expected("trois".into()),
Context("four".into()),
- ] },
- Mismatch { line_number: 5,
+ ],
+ },
+ Mismatch {
+ line_number: 5,
lines: vec![
Resulting("five".into()),
Expected("cinq".into()),
Context("six".into()),
- ] }]);
+ ],
+ },
+ ]
+ );
}
#[test]
@@ -207,10 +223,14 @@ mod test {
let src = "one\ntwo\nthree\nfour\nfive\n";
let dest = "one\ntwo\ntrois\nfour\nfive\n";
let diff = make_diff(src, dest, 0);
- assert_eq!(diff, vec![Mismatch { line_number: 3,
- lines: vec![
- Resulting("three".into()),
- Expected("trois".into()),
- ] }]);
+ assert_eq!(
+ diff,
+ vec![
+ Mismatch {
+ line_number: 3,
+ lines: vec![Resulting("three".into()), Expected("trois".into())],
+ },
+ ]
+ );
}
}
