Skip to content

Commit 581c317

Browse files
committed
Fix _testDSLCaptures
Previously we would ignore the case where the match fails, but the test expects the match to succeed.
1 parent 1221c09 commit 581c317

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Tests/RegexBuilderTests/RegexDSLTests.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,11 @@ class RegexDSLTests: XCTestCase {
270270
}
271271
.ignoresCase(false)
272272
}
273-
273+
274+
// FIXME: Re-enable this test
274275
try _testDSLCaptures(
275276
("can't stop won't stop", ("can't stop won't stop", "can't", "won't")),
276-
matchType: (Substring, Substring, Substring).self, ==) {
277+
matchType: (Substring, Substring, Substring).self, ==, xfail: true) {
277278
Capture {
278279
OneOrMore(.word)
279280
Anchor.wordBoundary
@@ -289,10 +290,11 @@ class RegexDSLTests: XCTestCase {
289290
OneOrMore(.any, .reluctant)
290291
"stop"
291292
}
292-
293+
294+
// FIXME: Re-enable this test
293295
try _testDSLCaptures(
294296
("can't stop won't stop", ("can't stop won't stop", "can", "won")),
295-
matchType: (Substring, Substring, Substring).self, ==) {
297+
matchType: (Substring, Substring, Substring).self, ==, xfail: true) {
296298
Capture {
297299
OneOrMore(.word)
298300
Anchor.wordBoundary

0 commit comments

Comments
 (0)