diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-06-18 15:52:53 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-06-18 15:52:53 -0700 |
| commit | 8967a6672477dce9fb8e765b07df4e54615cf265 (patch) | |
| tree | 1416c3cfa77e9a4dc7a1652f80e03a42a8c232c5 | |
| parent | 49d6d1bbb893d05f397ed7a5ae9c51bc1352ccf6 (diff) | |
| download | rust-8967a6672477dce9fb8e765b07df4e54615cf265.tar.gz rust-8967a6672477dce9fb8e765b07df4e54615cf265.zip | |
std: Use the singular 'test' when running just 1. Closes #2554
| -rw-r--r-- | src/libstd/test.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/test.rs b/src/libstd/test.rs index e693ec2a1ac..6a87a586299 100644 --- a/src/libstd/test.rs +++ b/src/libstd/test.rs @@ -107,7 +107,8 @@ fn run_tests_console(opts: test_opts, alt event { te_filtered(filtered_tests) { st.total = vec::len(filtered_tests); - st.out.write_line(#fmt["\nrunning %u tests", st.total]); + let noun = if st.total != 1u { "tests" } else { "test" }; + st.out.write_line(#fmt["\nrunning %u %s", st.total, noun]); } te_wait(test) { st.out.write_str(#fmt["test %s ... ", test.name]); } te_result(test, result) { |
