Prevent errors when using alternative error printout style.

This commit is contained in:
Stephen Chung 2020-09-18 12:31:41 +08:00
parent 206f21c26f
commit 7c3498a4e1
2 changed files with 6 additions and 2 deletions

View File

@ -245,7 +245,6 @@ mod generate_tests {
false false
} }
}); });
eprintln!("actual != expected, diverge at char {}", counter);
/* /*
let (actual_diff, expected_diff) = { let (actual_diff, expected_diff) = {
let mut actual_diff = String::new(); let mut actual_diff = String::new();
@ -256,6 +255,9 @@ mod generate_tests {
} }
(actual_diff, expected_diff) (actual_diff, expected_diff)
}; };
*/
eprintln!("actual != expected, diverge at char {}", counter);
/*
eprintln!(" actual: {}", actual_diff); eprintln!(" actual: {}", actual_diff);
eprintln!("expected: {}", expected_diff); eprintln!("expected: {}", expected_diff);
assert!(false); assert!(false);

View File

@ -226,7 +226,6 @@ mod generate_tests {
false false
} }
}); });
eprintln!("actual != expected, diverge at char {}", counter);
/* /*
let (actual_diff, expected_diff) = { let (actual_diff, expected_diff) = {
let mut actual_diff = String::new(); let mut actual_diff = String::new();
@ -237,6 +236,9 @@ mod generate_tests {
} }
(actual_diff, expected_diff) (actual_diff, expected_diff)
}; };
*/
eprintln!("actual != expected, diverge at char {}", counter);
/*
eprintln!(" actual: {}", actual_diff); eprintln!(" actual: {}", actual_diff);
eprintln!("expected: {}", expected_diff); eprintln!("expected: {}", expected_diff);
assert!(false); assert!(false);