Improve test runner summary message. Issue #428

This commit is contained in:
Brian Anderson 2011-07-12 13:16:00 -07:00
parent 9a37308101
commit ed556ab094
1 changed files with 8 additions and 2 deletions

View File

@ -73,8 +73,14 @@ fn run_tests(&test_opts opts, &test_desc[] tests) -> bool {
assert passed + failed == total;
out.write_str(#fmt("\nresults: %u passed; %u failed\n\n",
passed, failed));
out.write_str(#fmt("\nresult: "));
if (failed == 0u) {
write_ok(out);
} else {
write_failed(out);
}
out.write_str(#fmt(". %u passed; %u failed\n\n",
passed, failed));
ret true;