Skip to content

Commit c0510d9

Browse files
committed
wip
1 parent 6d52c9b commit c0510d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Examples/ExamplesTests/SwiftTestingTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
withKnownIssue {
1919
reportIssue()
2020
} matching: { issue in
21-
issue.description == "Issue recorded"
21+
issue.description.hasPrefix("Issue recorded")
2222
}
2323
}
2424

2525
@Test func reportIssue_CustomMessage() {
2626
withKnownIssue {
2727
reportIssue("Something went wrong")
2828
} matching: { issue in
29-
issue.description == "Issue recorded: Something went wrong"
29+
issue.description.hasSuffix("Something went wrong")
3030
}
3131
}
3232

@@ -51,7 +51,7 @@
5151
withExpectedIssue {
5252
}
5353
} matching: { issue in
54-
issue.description == "Known issue was not recorded"
54+
issue.description.hasPrefix("Known issue was not recorded")
5555
}
5656
}
5757

@@ -60,7 +60,7 @@
6060
withExpectedIssue("This didn't fail") {
6161
}
6262
} matching: { issue in
63-
issue.description == "Known issue was not recorded: This didn't fail"
63+
issue.description.hasSuffix("This didn't fail")
6464
}
6565
}
6666

0 commit comments

Comments
 (0)