connector-contract-v3: the smallest frame has no smaller payload bound

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-28 11:23:21 +01:00
commit b6ad75c610

View file

@ -714,7 +714,7 @@ mod tests {
assert_eq!(frame_bytes_for_payload(allowed), frame, "{bytes}");
assert!(frame_bytes_for_payload(allowed + 1) > frame, "{bytes}");
assert!(
payload_bytes_for_frame(frame - 1).unwrap() < bytes,
payload_bytes_for_frame(frame - 1).is_none_or(|smaller| smaller < bytes),
"{bytes}"
);
}