@@ -89,14 +89,14 @@ the result of running that test is `ok`. The overall summary `test result: ok.`
8989means that all the tests passed, and the portion that reads `1 passed; 0
9090failed` totals the number of tests that passed or failed.
9191
92- It' s possible to mark a test as ignored so it doesn' t run in a particular
93- instance; we' ll cover that in the [ “Ignoring Some Tests Unless Specifically
92+ It’ s possible to mark a test as ignored so it doesn’ t run in a particular
93+ instance; we’ ll cover that in the [ “Ignoring Some Tests Unless Specifically
9494Requested”] [ ignoring ] <!-- ignore --> section later in this chapter. Because we
95- haven' t done that here, the summary shows ` 0 ignored ` . We can also pass an
95+ haven’ t done that here, the summary shows ` 0 ignored ` . We can also pass an
9696argument to the ` cargo test ` command to run only tests whose name matches a
97- string; this is called filtering and we' ll cover that in the [ “Running a Subset
98- of Tests by Name”] [ subset ] <!-- ignore --> section. We also haven’t filtered the
99- tests being run, so the end of the summary shows ` 0 filtered out ` .
97+ string; this is called * filtering* and we’ ll cover that in the [ “Running a
98+ Subset of Tests by Name”] [ subset ] <!-- ignore --> section. We also haven’t
99+ filtered the tests being run, so the end of the summary shows ` 0 filtered out ` .
100100
101101The ` 0 measured ` statistic is for benchmark tests that measure performance.
102102Benchmark tests are, as of this writing, only available in nightly Rust. See
@@ -126,7 +126,7 @@ Then run `cargo test` again. The output now shows `exploration` instead of
126126{{#include ../listings/ch11-writing-automated-tests/no-listing-01-changing-test-name/output.txt}}
127127```
128128
129- Now we' ll add another test, but this time we’ll make a test that fails! Tests
129+ Now we’ ll add another test, but this time we’ll make a test that fails! Tests
130130fail when something in the test function panics. Each test is run in a new
131131thread, and when the main thread sees that a test thread has died, the test is
132132marked as failed. In Chapter 9, we talked about how the simplest way to panic
@@ -470,8 +470,8 @@ too large.
470470{{#rustdoc_include ../listings/ch11-writing-automated-tests/listing-11-09/src/lib.rs:here}}
471471```
472472
473- <span class =" caption " >Listing 11-9: Testing for a ` panic! ` with a particular
474- panic message </span >
473+ <span class =" caption " >Listing 11-9: Testing for a ` panic! ` with a panic message
474+ containing a specified substring </span >
475475
476476This test will pass because the value we put in the ` should_panic ` attribute’s
477477` expected ` parameter is a substring of the message that the ` Guess::new `
0 commit comments