Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/testing/unit_testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Running these tests gives us:
```shell
$ cargo test

running 3 tests
running 4 tests
test tests::test_any_panic ... ok
test tests::test_divide ... ok
test tests::test_specific_panic ... ok
Expand All @@ -179,7 +179,7 @@ $ cargo test test_any_panic
running 1 test
test tests::test_any_panic ... ok

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

Doc-tests tmp-test-should-panic

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

```shell
$ cargo test panic
running 2 tests
running 3 tests
test tests::test_any_panic ... ok
test tests::test_specific_panic ... ok
test tests::test_specific_panic_shorthand ... ok

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

Doc-tests tmp-test-should-panic

Expand Down