Skip to content

Commit

Permalink
Merge pull request #126 from ltratt/pp_failures
Browse files Browse the repository at this point in the history
Pretty print failures better
  • Loading branch information
vext01 authored Jul 15, 2024
2 parents adafdff + 66bdeba commit 9ffbf2f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@ impl LangTester {
0
};

let failures = Mutex::into_inner(Arc::try_unwrap(failures).unwrap()).unwrap();
let mut failures = Mutex::into_inner(Arc::try_unwrap(failures).unwrap()).unwrap();
failures.sort_by_key(|x| x.0.to_lowercase());
self.pp_failures(
&failures,
max(test_files_len, failures.len()),
Expand Down Expand Up @@ -489,9 +490,9 @@ impl LangTester {
}
}
}
eprintln!("\nfailures:");
eprint!("failures:");
for (test_fname, _) in failures {
eprint!(" lang_tests::{}", test_fname);
eprint!("\n lang_tests::{}", test_fname);
}
}

Expand Down

0 comments on commit 9ffbf2f

Please sign in to comment.