Skip to content

Commit b9df444

Browse files
committed
added assertions
1 parent 36b1612 commit b9df444

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
@@ -48,6 +48,9 @@ extension Processor {
4848
/// - Handles .eager and .posessive
4949
/// - Handles arbitrary minTrips and maxExtraTrips
5050
mutating func runQuantify(_ payload: QuantifyPayload) -> Bool {
51+
assert(payload.quantKind != .reluctant)
52+
assert(payload.minTrips >= 2, "Should have hit a specialized path")
53+
5154
var trips = 0
5255
var maxExtraTrips = payload.maxExtraTrips
5356

0 commit comments

Comments
 (0)