Skip to content

Commit

Permalink
test runner: add missing diff line type and improve readability of un…
Browse files Browse the repository at this point in the history
…implemented diff color error
  • Loading branch information
laniakea64 committed Jan 29, 2024
1 parent d6f9d44 commit 8c32cbd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,10 @@ fn _main() -> io::Result<()> {
"0;31"
} else if line.starts_with('@') {
"0;36"
} else if line == "\\ No newline at end of file" {
"0;97"
} else {
return Err(io::Error::new(
ErrorKind::Other,
format!("no defined color for line: {:?}", line),
));
unimplemented!("no defined color for line: '{}'", line);
};
eprintln!("\x1B[{}m{}\x1B[0m", color, line);
}
Expand Down

0 comments on commit 8c32cbd

Please sign in to comment.