Prevent errors when using alternative error printout style.

This commit is contained in:
Stephen Chung 2020-09-18 12:31:41 +08:00
parent 92be487e80
commit 23b5bc4bd9
2 changed files with 6 additions and 2 deletions

View File

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

View File

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