diff --git a/src/tester.rs b/src/tester.rs index 232975d..3eb45f0 100644 --- a/src/tester.rs +++ b/src/tester.rs @@ -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()), @@ -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); } }