Showing the changes to gix-diff/tests/diff (1 of 3 files). Show all
Unified · Split
| @@ -182,10 +182,10 @@ mod heuristics { · 181 unmodified lines | |||
| 182 | 182 | ||
| 183 | insta::assert_snapshot!(util::unidiff(&diff, &input), @r#" | 183 | insta::assert_snapshot!(util::unidiff(&diff, &input), @r#" |
| 184 | @@ -2,1 +2,1 @@ | 184 | @@ -2,1 +2,1 @@ |
| 185 | - let x = 1; | 185 | - let x = 1; |
| 186 | + let x = 2; | 186 | + let x = 2; |
| 187 | @@ -4,0 +4,1 @@ | 187 | @@ -4,0 +4,1 @@ |
| 188 | + println!("done"); | 188 | + println!("done"); |
| 189 | "#); | 189 | "#); |
| 190 | Ok(()) | 190 | Ok(()) |
| 191 | } | 191 | } |
| @@ -212,10 +212,10 @@ mod heuristics { · 20 unmodified lines | |||
| 212 | 212 | ||
| 213 | insta::assert_snapshot!(util::unidiff(&diff, &input), @r#" | 213 | insta::assert_snapshot!(util::unidiff(&diff, &input), @r#" |
| 214 | @@ -2,1 +2,1 @@ | 214 | @@ -2,1 +2,1 @@ |
| 215 | - let x = 1; | 215 | - let x = 1; |
| 216 | + let x = 2; | 216 | + let x = 2; |
| 217 | @@ -4,0 +4,1 @@ | 217 | @@ -4,0 +4,1 @@ |
| 218 | + println!("done"); | 218 | + println!("done"); |
| 219 | "#); | 219 | "#); |
| 220 | Ok(()) | 220 | Ok(()) |
| 221 | } | 221 | } |
| @@ -243,7 +243,7 @@ mod heuristics { · 21 unmodified lines | |||
| 243 | 243 | ||
| 244 | insta::assert_snapshot!(util::unidiff(&diff, &input), @r#" | 244 | insta::assert_snapshot!(util::unidiff(&diff, &input), @r#" |
| 245 | @@ -4,0 +4,1 @@ | 245 | @@ -4,0 +4,1 @@ |
| 246 | + println!("world"); | 246 | + println!("world"); |
| 247 | "#); | 247 | "#); |
| 248 | 248 | ||
| 249 | Ok(()) | 249 | Ok(()) |
| @@ -311,12 +311,12 @@ mod heuristics { · 61 unmodified lines | |||
| 311 | let input = blob::InternedInput::new(before, after); | 311 | let input = blob::InternedInput::new(before, after); |
| 312 | let diff = diff_with_slider_heuristics(blob::Algorithm::Histogram, &input); | 312 | let diff = diff_with_slider_heuristics(blob::Algorithm::Histogram, &input); |
| 313 | 313 | ||
| 314 | insta::assert_snapshot!(util::unidiff(&diff, &input), @r" | 314 | insta::assert_snapshot!(util::unidiff(&diff, &input), @" |
| 315 | @@ -3,0 +3,1 @@ | 315 | @@ -3,0 +3,1 @@ |
| 316 | + y: i32, | 316 | + y: i32, |
| 317 | @@ -7,1 +8,1 @@ | 317 | @@ -7,1 +8,1 @@ |
| 318 | - Foo { x: 0 } | 318 | - Foo { x: 0 } |
| 319 | + Foo { x: 0, y: 0 } | 319 | + Foo { x: 0, y: 0 } |
| 320 | "); | 320 | "); |
| 321 | 321 | ||
| 322 | Ok(()) | 322 | Ok(()) |