Skip to content

PairingGuards ​

Out-of-domain mode-pairing inputs raise rather than returning a wrong number

7/7 passed in 2ms

TestWhat it doesResult
test_dark_ceilingThe refusal of a dark probability past a half names the background announcement floor.✅ pass
test_forward_slotspairing_click, pairing_sift and pairing_single each refuse an arm transmittance, intensity or dark probability outside its domain.✅ pass
test_ladder_orderpairing_ladder refuses a decoy at or above the signal, and it and pairing_bases refuse intensity probabilities that do not sum to one.✅ pass
test_rate_ceilingpairing_rate refuses a pairing rate above a half, which is what an announcement probability in that slot produces.✅ pass
test_rate_slotspairing_rate refuses each of its six arguments outside its domain.✅ pass
test_short_coherencepairing_span refuses a coherence time shorter than one round, and an absurd window at the other end.✅ pass
test_zero_spanpairing_pairs and pairing_drift both refuse a pairing interval of zero rounds.✅ pass