Skip to content

Commit 4c3ebf0

Browse files
committed
fix findo/replaco
1 parent 2d7a391 commit 4c3ebf0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/RegexTests/MatchTests.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2659,11 +2659,11 @@ extension RegexTests {
26592659
func testQuantifyOptimization() throws {
26602660
// test that the maximum values for minTrips and maxExtraTrips are handled correctly
26612661
let maxStorable = Int(QuantifyPayload.maxStorableTrips)
2662-
let maxmaxExtraTrips = "a{,\(maxStorable)}"
2663-
expectProgram(for: maxmaxExtraTrips, contains: [.quantify])
2664-
firstMatchTest(maxmaxExtraTrips, input: String(repeating: "a", count: maxStorable), match: String(repeating: "a", count: maxStorable))
2665-
firstMatchTest(maxmaxExtraTrips, input: String(repeating: "a", count: maxStorable + 1), match: String(repeating: "a", count: maxStorable))
2666-
XCTAssertNil(try Regex(maxmaxExtraTrips).wholeMatch(in: String(repeating: "a", count: maxStorable + 1)))
2662+
let maxExtraTrips = "a{,\(maxStorable)}"
2663+
expectProgram(for: maxExtraTrips, contains: [.quantify])
2664+
firstMatchTest(maxExtraTrips, input: String(repeating: "a", count: maxStorable), match: String(repeating: "a", count: maxStorable))
2665+
firstMatchTest(maxExtraTrips, input: String(repeating: "a", count: maxStorable + 1), match: String(repeating: "a", count: maxStorable))
2666+
XCTAssertNil(try Regex(maxExtraTrips).wholeMatch(in: String(repeating: "a", count: maxStorable + 1)))
26672667

26682668
let maxMinTrips = "a{\(maxStorable),}"
26692669
expectProgram(for: maxMinTrips, contains: [.quantify])

0 commit comments

Comments
 (0)