add manual_assert clippy lint (#8578)

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
This commit is contained in:
Thomas Coratger
2024-06-04 10:27:40 +02:00
committed by GitHub
parent 56859b4172
commit 4c6e5be876
8 changed files with 25 additions and 32 deletions

View File

@ -76,9 +76,7 @@ pub(crate) fn assert_tests_pass(suite_name: &str, path: &Path, results: &[CaseRe
print_results(suite_name, path, &passed, &failed, &skipped);
if !failed.is_empty() {
panic!("Some tests failed (see above)");
}
assert!(failed.is_empty(), "Some tests failed (see above)");
}
/// Categorize test results into `(passed, failed, skipped)`.