Skip to content

Commit ae96d36

Browse files
committed
add test
1 parent 492e1a5 commit ae96d36

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#if canImport(Testing)
2+
import Testing
3+
import IssueReporting
4+
5+
@Suite
6+
struct WithErrorReportingTests {
7+
@Test func basics() {
8+
withKnownIssue {
9+
withErrorReporting {
10+
throw SomeError()
11+
}
12+
} matching: { issue in
13+
issue.description == "Caught error: SomeError()"
14+
}
15+
}
16+
}
17+
18+
private struct SomeError: Error {}
19+
#endif

0 commit comments

Comments
 (0)