Skip to content

Commit

Permalink
Avoid extraneous semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jun 21, 2024
1 parent 5158d79 commit 4d3fe32
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 10 deletions.
17 changes: 13 additions & 4 deletions src/status_emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,16 +465,25 @@ impl StatusEmitter for Text {
}
println!();
print!("test result: {}.", "FAIL".bright_red());
print!(" {} failed;", self.failures.len().to_string().green());
print!(" {} failed", self.failures.len().to_string().green());
if self.succeeded > 0 || self.ignored > 0 || self.filtered > 0 {
print!(";");
}
}
if self.succeeded > 0 {
print!(" {} passed;", self.succeeded.to_string().green());
print!(" {} passed", self.succeeded.to_string().green());
if self.ignored > 0 || self.filtered > 0 {
print!(";");
}
}
if self.ignored > 0 {
print!(" {} ignored;", self.ignored.to_string().yellow());
print!(" {} ignored", self.ignored.to_string().yellow());
if self.filtered > 0 {
print!(";");
}
}
if self.filtered > 0 {
print!(" {} filtered out;", self.filtered.to_string().yellow());
print!(" {} filtered out", self.filtered.to_string().yellow());
}
println!();
println!();
Expand Down
2 changes: 1 addition & 1 deletion tests/integrations/basic-fail-mode/Cargo.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; fini
Building dependencies ... ok
tests/actual_tests/foomp.rs ... ok

test result: ok. 1 passed;
test result: ok. 1 passed


running 0 tests
Expand Down
4 changes: 2 additions & 2 deletions tests/integrations/basic-fail/Cargo.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -1033,14 +1033,14 @@ FAILURES:
tests/actual_tests_bless/unknown_revision2.rs
tests/actual_tests_bless/wrong_diagnostic_code.rs

test result: FAIL. 22 failed; 14 passed; 3 ignored;
test result: FAIL. 22 failed; 14 passed; 3 ignored

Building dependencies ... ok
tests/actual_tests_bless_yolo/revisions_bad.rs (revision `foo`) ... ok
tests/actual_tests_bless_yolo/revisions_bad.rs (revision `bar`) ... ok
tests/actual_tests_bless_yolo/rustfix-maybe-incorrect.rs ... ok

test result: ok. 3 passed;
test result: ok. 3 passed

tests/actual_tests/bad_pattern.rs ... FAILED
tests/actual_tests/executable.rs ... FAILED
Expand Down
2 changes: 1 addition & 1 deletion tests/integrations/basic/Cargo.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ tests/actual_tests/unicode.rs ... ok
tests/actual_tests/windows_paths.rs ... ok
tests/actual_tests/subdir/aux_proc_macro.rs ... ok

test result: ok. 17 passed;
test result: ok. 17 passed


running 0 tests
Expand Down
2 changes: 1 addition & 1 deletion tests/integrations/cargo-run/Cargo.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ tests/actual_tests/matching_stdin.rs ... ok
tests/actual_tests/mismatching_stdin.rs ... ok
tests/actual_tests/no_stdin.rs ... ok

test result: ok. 4 passed;
test result: ok. 4 passed

2 changes: 1 addition & 1 deletion tests/integrations/ui_test_dep_bug/Cargo.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; fini
Building dependencies ... ok
tests/ui/basic_test.rs ... ok

test result: ok. 1 passed;
test result: ok. 1 passed


running 0 tests
Expand Down

0 comments on commit 4d3fe32

Please sign in to comment.