Skip to content

Commit 8d4a79d

Browse files
authored
Update description of nested types and @suite trait in vision doc (#84)
Refine how the vision doc describes using nested types for sub-grouping tests and replace an erroneous usage of `@Test` on a type which should be `@Suite`
1 parent c42bb90 commit 8d4a79d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/Vision.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,14 +657,14 @@ func example4() {
657657
#### Nesting / subgrouping tests
658658

659659
Earlier examples showed how related tests may be grouped together by placing
660-
them within a type conforming to `Suite`. This technique also allows forming
661-
sub-groups by nesting one `Suite`-conforming type inside another:
660+
them within a type. This technique also allows forming sub-groups by nesting
661+
one type containing tests inside another:
662662

663663
```swift
664664
struct OuterTests {
665665
@Test func outerExample() { /* ... */ }
666666

667-
@Test(.tags("edge-case"))
667+
@Suite(.tags("edge-case"))
668668
struct InnerTests {
669669
@Test func innerExample1() { /* ... */ }
670670
@Test func innerExample2() { /* ... */ }

0 commit comments

Comments
 (0)