Skip to content

Commit b115af4

Browse files
committed
---
yaml --- r: 3861 b: refs/heads/master c: ed556ab h: refs/heads/master i: 3859: 7d73b2b v: v3
1 parent fc58d47 commit b115af4

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 9a37308101bb188794eebdcd377c30ba39a3c082
2+
refs/heads/master: ed556ab094ca437700cb6c9797d2dc9639b8b8b9

trunk/src/lib/test.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,14 @@ fn run_tests(&test_opts opts, &test_desc[] tests) -> bool {
7373

7474
assert passed + failed == total;
7575

76-
out.write_str(#fmt("\nresults: %u passed; %u failed\n\n",
77-
passed, failed));
76+
out.write_str(#fmt("\nresult: "));
77+
if (failed == 0u) {
78+
write_ok(out);
79+
} else {
80+
write_failed(out);
81+
}
82+
out.write_str(#fmt(". %u passed; %u failed\n\n",
83+
passed, failed));
7884

7985
ret true;
8086

0 commit comments

Comments
 (0)