Skip to content

Commit cfc3e4c

Browse files
authored
[NFC] Re-enable tests for capture type munging (#775)
The RegexBuilder tests for working with composed regexes with capture tuple types that don't play well with DSL methods were inadvertently disabled in a previous commit (by me). This re-enables those tests.
1 parent 768ed79 commit cfc3e4c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Tests/RegexBuilderTests/RegexDSLTests.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,7 +1831,6 @@ fileprivate let regexWithNonCapture = #/:(?:\d+):/#
18311831
@available(SwiftStdlib 5.7, *)
18321832
extension RegexDSLTests {
18331833
func testLabeledCaptures_regularCapture() throws {
1834-
return
18351834
// The output type of a regex with unlabeled captures is concatenated.
18361835
let dslWithCapture = Regex {
18371836
OneOrMore(.word)
@@ -1846,7 +1845,6 @@ extension RegexDSLTests {
18461845
}
18471846

18481847
func testLabeledCaptures_labeledCapture() throws {
1849-
return
18501848
guard #available(macOS 13, *) else {
18511849
throw XCTSkip("Fix only exists on macOS 13")
18521850
}
@@ -1870,7 +1868,6 @@ extension RegexDSLTests {
18701868
}
18711869

18721870
func testLabeledCaptures_coalescingWithCapture() throws {
1873-
return
18741871
let coalescingWithCapture = Regex {
18751872
"e" as Character
18761873
#/\u{301}(\d*)/#
@@ -1887,7 +1884,6 @@ extension RegexDSLTests {
18871884
}
18881885

18891886
func testLabeledCaptures_bothCapture() throws {
1890-
return
18911887
guard #available(macOS 13, *) else {
18921888
throw XCTSkip("Fix only exists on macOS 13")
18931889
}

0 commit comments

Comments
 (0)