From 21db8362f26e781f738ccfe3473a7b307a505470 Mon Sep 17 00:00:00 2001 From: Stuart Montgomery Date: Mon, 7 Jul 2025 20:44:59 -0500 Subject: [PATCH 1/2] Clarify the number of supported argument collections in article which discusses combinatoric parameterized testing Fixes rdar://154647425 --- Sources/Testing/Testing.docc/ParameterizedTesting.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Testing/Testing.docc/ParameterizedTesting.md b/Sources/Testing/Testing.docc/ParameterizedTesting.md index 2dada707e..87004ac70 100644 --- a/Sources/Testing/Testing.docc/ParameterizedTesting.md +++ b/Sources/Testing/Testing.docc/ParameterizedTesting.md @@ -146,11 +146,11 @@ func makeLargeOrder(of food: Food, count: Int) async throws { ``` Elements from the first collection are passed as the first argument to the test -function, elements from the second collection are passed as the second argument, -and so forth. +function, and elements from the second collection are passed as the second +argument. Assuming there are five cases in the `Food` enumeration, this test function -will, when run, be invoked 500 times (5 x 100) with every possible combination +will, when run, be invoked 500 times (5 × 100) with every possible combination of food and order size. These combinations are referred to as the collections' Cartesian product. From be57b8a097c6e760ad628b5f7d2c8cf12e9f05d3 Mon Sep 17 00:00:00 2001 From: Stuart Montgomery Date: Tue, 8 Jul 2025 10:52:49 -0500 Subject: [PATCH 2/2] Revert multiplication sign (see: rdar://155333904) --- Sources/Testing/Testing.docc/ParameterizedTesting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Testing/Testing.docc/ParameterizedTesting.md b/Sources/Testing/Testing.docc/ParameterizedTesting.md index 87004ac70..7aeaeead4 100644 --- a/Sources/Testing/Testing.docc/ParameterizedTesting.md +++ b/Sources/Testing/Testing.docc/ParameterizedTesting.md @@ -150,7 +150,7 @@ function, and elements from the second collection are passed as the second argument. Assuming there are five cases in the `Food` enumeration, this test function -will, when run, be invoked 500 times (5 × 100) with every possible combination +will, when run, be invoked 500 times (5 x 100) with every possible combination of food and order size. These combinations are referred to as the collections' Cartesian product.