@@ -1846,8 +1846,7 @@ extension RegexDSLTests {
1846
1846
1847
1847
func testLabeledCaptures_labeledCapture( ) throws {
1848
1848
guard #available( macOS 13 , * ) else {
1849
- XCTSkip ( " Fix only exists on macOS 13 " )
1850
- return
1849
+ throw XCTSkip ( " Fix only exists on macOS 13 " )
1851
1850
}
1852
1851
// The output type of a regex with a labeled capture is dropped.
1853
1852
let dslWithLabeledCapture = Regex {
@@ -1886,8 +1885,7 @@ extension RegexDSLTests {
1886
1885
1887
1886
func testLabeledCaptures_bothCapture( ) throws {
1888
1887
guard #available( macOS 13 , * ) else {
1889
- XCTSkip ( " Fix only exists on macOS 13 " )
1890
- return
1888
+ throw XCTSkip ( " Fix only exists on macOS 13 " )
1891
1889
}
1892
1890
// Only the output type of a regex with a labeled capture is dropped,
1893
1891
// outputs of other regexes in the same DSL are concatenated.
@@ -1913,8 +1911,7 @@ extension RegexDSLTests {
1913
1911
1914
1912
func testLabeledCaptures_tooManyCapture( ) throws {
1915
1913
guard #available( macOS 13 , * ) else {
1916
- XCTSkip ( " Fix only exists on macOS 13 " )
1917
- return
1914
+ throw XCTSkip ( " Fix only exists on macOS 13 " )
1918
1915
}
1919
1916
// The output type of a regex with too many captures is dropped.
1920
1917
// "Too many" means the left and right output types would add up to >= 10.
0 commit comments