Skip to content

Commit 7c16250

Browse files
committed
added assertions
1 parent bae30c8 commit 7c16250

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/_StringProcessing/Engine/MEQuantify.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ extension Processor {
4646
/// - Handles .eager and .posessive
4747
/// - Handles arbitrary minTrips and maxExtraTrips
4848
mutating func runQuantify(_ payload: QuantifyPayload) -> Bool {
49+
assert(payload.quantKind != .reluctant)
50+
assert(payload.minTrips >= 2, "Should have hit a specialized path")
51+
4952
var trips = 0
5053
var maxExtraTrips = payload.maxExtraTrips
5154

0 commit comments

Comments
 (0)