Skip to content

Commit 5b814f8

Browse files
Fix tests
1 parent 88a7568 commit 5b814f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/context_diff.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ mod tests {
444444
bet.write_all(b"l\n").unwrap();
445445
}
446446
let _ = File::create(&format!("{target}/aalef")).unwrap();
447+
let mut fa = File::create(&format!("{target}/alef")).unwrap();
447448
// This test diff is intentionally reversed.
448449
// We want it to turn the alef into bet.
449450
let diff = diff(
@@ -460,7 +461,6 @@ mod tests {
460461
.unwrap()
461462
.write_all(&diff)
462463
.unwrap();
463-
let mut fa = File::create(&format!("{target}/alef")).unwrap();
464464
fa.write_all(&alef[..]).unwrap();
465465
let mut fb = File::create(&format!("{target}/bet")).unwrap();
466466
fb.write_all(&bet[..]).unwrap();
@@ -526,6 +526,7 @@ mod tests {
526526
bet.write_all(b"l\n").unwrap();
527527
}
528528
let _ = File::create(&format!("{target}/aalef_")).unwrap();
529+
let mut fa = File::create(&format!("{target}/alef_")).unwrap();
529530
// This test diff is intentionally reversed.
530531
// We want it to turn the alef into bet.
531532
let diff = diff(
@@ -542,7 +543,6 @@ mod tests {
542543
.unwrap()
543544
.write_all(&diff)
544545
.unwrap();
545-
let mut fa = File::create(&format!("{target}/alef_")).unwrap();
546546
fa.write_all(&alef[..]).unwrap();
547547
let mut fb = File::create(&format!("{target}/bet_")).unwrap();
548548
fb.write_all(&bet[..]).unwrap();
@@ -611,6 +611,7 @@ mod tests {
611611
continue;
612612
};
613613
let _ = File::create(&format!("{target}/aalefx")).unwrap();
614+
let mut fa = File::create(&format!("{target}/alefx")).unwrap();
614615
// This test diff is intentionally reversed.
615616
// We want it to turn the alef into bet.
616617
let diff = diff(
@@ -627,7 +628,6 @@ mod tests {
627628
.unwrap()
628629
.write_all(&diff)
629630
.unwrap();
630-
let mut fa = File::create(&format!("{target}/alefx")).unwrap();
631631
fa.write_all(&alef[..]).unwrap();
632632
let mut fb = File::create(&format!("{target}/betx")).unwrap();
633633
fb.write_all(&bet[..]).unwrap();
@@ -699,6 +699,7 @@ mod tests {
699699
bet.write_all(b"f\n").unwrap();
700700
}
701701
let _ = File::create(&format!("{target}/aalefr")).unwrap();
702+
let mut fa = File::create(&format!("{target}/alefr")).unwrap();
702703
// This test diff is intentionally reversed.
703704
// We want it to turn the alef into bet.
704705
let diff = diff(
@@ -715,7 +716,6 @@ mod tests {
715716
.unwrap()
716717
.write_all(&diff)
717718
.unwrap();
718-
let mut fa = File::create(&format!("{target}/alefr")).unwrap();
719719
fa.write_all(&alef[..]).unwrap();
720720
let mut fb = File::create(&format!("{target}/betr")).unwrap();
721721
fb.write_all(&bet[..]).unwrap();

0 commit comments

Comments
 (0)