diff --git a/src/SUMMARY.md b/src/SUMMARY.md index bc924fb0..fb02af6e 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -183,7 +183,7 @@ - [Exercise: Modules for a GUI Library](modules/exercise.md) - [Solution](modules/solution.md) - [Testing](testing.md) - - [Test Modules](testing/unit-tests.md) + - [Unit Tests](testing/unit-tests.md) - [Other Types of Tests](testing/other.md) - [Compiler Lints and Clippy](testing/lints.md) - [Exercise: Luhn Algorithm](testing/exercise.md) diff --git a/src/testing/unit-tests.md b/src/testing/unit-tests.md index 2c3495f5..d9681b49 100644 --- a/src/testing/unit-tests.md +++ b/src/testing/unit-tests.md @@ -4,15 +4,9 @@ minutes: 5 # Unit Tests -Rust and Cargo come with a simple unit test framework: - -- Unit tests are supported throughout your code. - -- Integration tests are supported via the `tests/` directory. - -Tests are marked with `#[test]`. Unit tests are often put in a nested `tests` -module, using `#[cfg(test)]` to conditionally compile them only when building -tests. +Rust and Cargo come with a simple unit test framework. Tests are marked with +`#[test]`. Unit tests are often put in a nested `tests` module, using +`#[cfg(test)]` to conditionally compile them only when building tests. ```rust,editable,ignore fn first_word(text: &str) -> &str {