From d4ce342541ab7947338884aded73cc2331f51ce7 Mon Sep 17 00:00:00 2001 From: mixmastamyk Date: Wed, 16 Apr 2025 12:47:42 -0700 Subject: [PATCH 1/2] Update ch11-03-test-organization.md Avoid absolutes. --- src/ch11-03-test-organization.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch11-03-test-organization.md b/src/ch11-03-test-organization.md index 411c41b7b4..6e1c313f72 100644 --- a/src/ch11-03-test-organization.md +++ b/src/ch11-03-test-organization.md @@ -4,7 +4,7 @@ As mentioned at the start of the chapter, testing is a complex discipline, and different people use different terminology and organization. The Rust community thinks about tests in terms of two main categories: unit tests and integration tests. _Unit tests_ are small and more focused, testing one module in isolation -at a time, and can test private interfaces. _Integration tests_ are entirely +at a time, and can test private interfaces. _Integration tests_ are external to your library and use your code in the same way any other external code would, using only the public interface and potentially exercising multiple modules per test. From d137cb7c5463c763dfa3ea87667407a3ddd1216d Mon Sep 17 00:00:00 2001 From: mixmastamyk Date: Wed, 16 Apr 2025 13:49:22 -0700 Subject: [PATCH 2/2] Update ch11-03-test-organization.md Found another. --- src/ch11-03-test-organization.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch11-03-test-organization.md b/src/ch11-03-test-organization.md index 6e1c313f72..fc5b836074 100644 --- a/src/ch11-03-test-organization.md +++ b/src/ch11-03-test-organization.md @@ -76,7 +76,7 @@ to do so. ### Integration Tests -In Rust, integration tests are entirely external to your library. They use your +In Rust, integration tests are external to your library. They use your library in the same way any other code would, which means they can only call functions that are part of your library’s public API. Their purpose is to test whether many parts of your library work together correctly. Units of code that