mirror of
https://github.com/MorizzG/rlox.git
synced 2025-12-06 04:12:42 +00:00
updated error names and Display
This commit is contained in:
parent
b8741ea3cc
commit
f9fe77f1e2
7 changed files with 164 additions and 81 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue