Skip to content

Commit 39dc61f

Browse files
authored
Add a (very) short example test to the repo readme. (#173)
This PR adds an example test to the repo readme so that readers can get a sense of what swift-testing looks like without digging into the documentation.
1 parent 03f7972 commit 39dc61f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ See https://swift.org/CONTRIBUTORS.txt for Swift project authors
1111
-->
1212

1313
`swift-testing` is a modern, open-source testing library for Swift with powerful
14-
and expressive capabilities. It gives developers more confidence with less code.
14+
and expressive capabilities. It gives developers more confidence with less code:
15+
16+
```swift
17+
@Test func helloWorld() {
18+
#expect("hello" != "world")
19+
}
20+
```
1521

1622
> [!IMPORTANT]
1723
> This package is under active, ongoing development. Its contents, including all

0 commit comments

Comments
 (0)