Skip to content

Commit 1b73e59

Browse files
committed
Set availability for inverted character class test
This feature depends on running with a Swift 5.7 stdlib, and fails when that isn't available.
1 parent ed95066 commit 1b73e59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/DocumentationTests/RegexBuilderTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class RegexBuilderTests: XCTestCase {}
2121

2222
extension RegexBuilderTests {
2323
func testCharacterClass_inverted() throws {
24+
guard #available(macOS 13, *) else { return }
25+
2426
let validCharacters = CharacterClass("a"..."z", .anyOf("-_"))
2527
let invalidCharacters = validCharacters.inverted
2628

0 commit comments

Comments
 (0)