We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36b1612 commit b9df444Copy full SHA for b9df444
Sources/_StringProcessing/Engine/MEQuantify.swift
@@ -48,6 +48,9 @@ extension Processor {
48
/// - Handles .eager and .posessive
49
/// - Handles arbitrary minTrips and maxExtraTrips
50
mutating func runQuantify(_ payload: QuantifyPayload) -> Bool {
51
+ assert(payload.quantKind != .reluctant)
52
+ assert(payload.minTrips >= 2, "Should have hit a specialized path")
53
+
54
var trips = 0
55
var maxExtraTrips = payload.maxExtraTrips
56
0 commit comments