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 bae30c8 commit 7c16250Copy full SHA for 7c16250
Sources/_StringProcessing/Engine/MEQuantify.swift
@@ -46,6 +46,9 @@ extension Processor {
46
/// - Handles .eager and .posessive
47
/// - Handles arbitrary minTrips and maxExtraTrips
48
mutating func runQuantify(_ payload: QuantifyPayload) -> Bool {
49
+ assert(payload.quantKind != .reluctant)
50
+ assert(payload.minTrips >= 2, "Should have hit a specialized path")
51
+
52
var trips = 0
53
var maxExtraTrips = payload.maxExtraTrips
54
0 commit comments