File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -812,7 +812,8 @@ fn main() {
812
812
mod tests {
813
813
#[test]
814
814
fn it_works() {
815
- assert_eq!(2 + 2, 4);
815
+ let result = 2 + 2;
816
+ assert_eq!(result, 4);
816
817
}
817
818
}
818
819
"
Original file line number Diff line number Diff line change @@ -572,7 +572,8 @@ fn formats_source() {
572
572
mod tests {
573
573
#[test]
574
574
fn it_works() {
575
- assert_eq!(2 + 2, 4);
575
+ let result = 2 + 2;
576
+ assert_eq!(result, 4);
576
577
}
577
578
}
578
579
"#
@@ -592,7 +593,8 @@ fn ignores_failure_to_format_source() {
592
593
mod tests {
593
594
#[test]
594
595
fn it_works() {
595
- assert_eq!(2 + 2, 4);
596
+ let result = 2 + 2;
597
+ assert_eq!(result, 4);
596
598
}
597
599
}
598
600
"#
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ fn simple_lib() {
31
31
mod tests {
32
32
#[test]
33
33
fn it_works() {
34
- assert_eq!(2 + 2, 4);
34
+ let result = 2 + 2;
35
+ assert_eq!(result, 4);
35
36
}
36
37
}
37
38
"#
You can’t perform that action at this time.
0 commit comments