Skip to content

Commit

Permalink
Update ch11-02-running-tests.md
Browse files Browse the repository at this point in the history
  • Loading branch information
actuallyatiger authored Aug 28, 2023
1 parent 9b000f2 commit 816dc8f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ch11-02-running-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ state.

### Showing Function Output

By default, if a test fails, Rust’s test library captures anything printed to
standard output. For example, if we call `println!` in a test and the test
passes, we won’t see the `println!` output in the terminal; we’ll see only the
line that indicates the test passed. If a test fails, we’ll see whatever was
printed to standard output with the rest of the failure message.
By default, if a test passes, Rust’s test library will not capture anything
printed to standard output. For example, if we call `println!` in a test and
the test passes, we won’t see the `println!` output in the terminal; we’ll see
only the line that indicates the test passed. If a test fails, we’ll see
whatever was printed to standard output with the rest of the failure message.

As an example, Listing 11-10 has a silly function that prints the value of its
parameter and returns 10, as well as a test that passes and a test that fails.
Expand Down

0 comments on commit 816dc8f

Please sign in to comment.