Skip to content

Commit

Permalink
Merge pull request #37 from flba-eb/master
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor authored Aug 8, 2022
2 parents 4c3e291 + aacc9e6 commit ec09955
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -975,12 +975,12 @@ impl TestGenerator {
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
fn main() {
println!("RUNNING ALL TESTS");
eprintln!("RUNNING ALL TESTS");
run_all();
if FAILED.load(Ordering::SeqCst) {
panic!("some tests failed");
} else {
println!("PASSED {} tests", NTESTS.load(Ordering::SeqCst));
eprintln!("PASSED {} tests", NTESTS.load(Ordering::SeqCst));
}
}
Expand Down Expand Up @@ -1010,7 +1010,7 @@ impl TestGenerator {
fn same<T: Eq + Pretty>(rust: T, c: T, attr: &str) {
if rust != c {
println!("bad {}: rust: {} != c {}", attr, rust.pretty(),
eprintln!("bad {}: rust: {} != c {}", attr, rust.pretty(),
c.pretty());
FAILED.store(true, Ordering::SeqCst);
} else {
Expand Down

0 comments on commit ec09955

Please sign in to comment.