updated error names and Display

This commit is contained in:
Moritz Gmeiner 2024-09-01 23:53:04 +02:00
commit f9fe77f1e2
7 changed files with 164 additions and 81 deletions

View file

@ -74,7 +74,11 @@ pub fn run_test(path: impl Into<PathBuf>) {
.map(|s| s.to_owned())
.collect();
assert_eq!(lines.len(), comments.len());
assert_eq!(
lines.len(),
comments.len(),
"Didn't get as many outputs as expected"
);
for (line, comment) in std::iter::zip(lines.into_iter(), comments.into_iter()) {
assert_eq!(line, comment);