@@ -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