Skip to content

Commit 2c9b490

Browse files
authored
Merge pull request #1958 from martin-g/patch-1
Update unit testing output for additional test
2 parents dd26bc8 + 5558910 commit 2c9b490

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/testing/unit_testing.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Running these tests gives us:
155155
```shell
156156
$ cargo test
157157

158-
running 3 tests
158+
running 4 tests
159159
test tests::test_any_panic ... ok
160160
test tests::test_divide ... ok
161161
test tests::test_specific_panic ... ok
@@ -179,7 +179,7 @@ $ cargo test test_any_panic
179179
running 1 test
180180
test tests::test_any_panic ... ok
181181

182-
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 2 filtered out
182+
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 3 filtered out
183183

184184
Doc-tests tmp-test-should-panic
185185

@@ -193,11 +193,12 @@ tests that should be run.
193193

194194
```shell
195195
$ cargo test panic
196-
running 2 tests
196+
running 3 tests
197197
test tests::test_any_panic ... ok
198198
test tests::test_specific_panic ... ok
199+
test tests::test_specific_panic_shorthand ... ok
199200

200-
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out
201+
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out
201202

202203
Doc-tests tmp-test-should-panic
203204

0 commit comments

Comments
 (0)