We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fb2e20 commit 59c5fc3Copy full SHA for 59c5fc3
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 2cb3a798abb12153d48c705f85358d54abe705d5
+refs/heads/master: 3fb33008ce5bdd1e369b471bc20b6fe28c0f550e
trunk/src/lib/test.rs
@@ -129,17 +129,18 @@ fn run_tests(&test_opts opts, &test_desc[] tests) -> bool {
129
}
130
131
assert passed + failed + ignored == total;
132
+ auto success = failed == 0u;
133
134
out.write_str(#fmt("\nresult: "));
- if (failed == 0u) {
135
+ if (success) {
136
write_ok(out);
137
} else {
138
write_failed(out);
139
140
out.write_str(#fmt(". %u passed; %u failed; %u ignored\n\n",
141
passed, failed, ignored));
142
- ret true;
143
+ ret success;
144
145
fn write_ok(&io::writer out) {
146
write_pretty(out, "ok", term::color_green);
0 commit comments