Skip to content

Commit 4caaa27

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 4caaa27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/DocumentationTests/RegexBuilderTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import RegexBuilder
2020
class RegexBuilderTests: XCTestCase {}
2121

2222
extension RegexBuilderTests {
23+
@available(swift 5.7)
2324
func testCharacterClass_inverted() throws {
2425
let validCharacters = CharacterClass("a"..."z", .anyOf("-_"))
2526
let invalidCharacters = validCharacters.inverted

0 commit comments

Comments
 (0)