@@ -2659,11 +2659,11 @@ extension RegexTests {
2659
2659
func testQuantifyOptimization( ) throws {
2660
2660
// test that the maximum values for minTrips and maxExtraTrips are handled correctly
2661
2661
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 ) ) )
2667
2667
2668
2668
let maxMinTrips = " a{ \( maxStorable) ,} "
2669
2669
expectProgram ( for: maxMinTrips, contains: [ . quantify] )
0 commit comments