You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: extent_parity proptests can trip proptest's float range assertion (Windows merge group) #1951
scene::extent_parity::random_boxes_match_oracle (from #1922) can panic inside proptest before it reaches the code under test. It did on Windows in the merge group for #1929, which ejected #1929 from the queue (reported on #1922):
panicked at proptest-1.11.0/src/num/float_samplers.rs:466:1:
assertion failed: self.low - result < self.intervals.step
The stack goes through Range<f32>::new_tree inside the prop_oneof![-f32::MAX..-1.0e30f32, 1.0e30f32..f32::MAX] arm of entry(). Proptest's float sampler checks its first interval split with a debug_assert!, and a range that wide can overshoot that check. It is rare: 6 million samples of that strategy in a local debug build did not trip it. random_matrices_match_oracle uses the same entry().
Fix: draw that arm from the bit patterns of 1e30 up to f32::MAX, with a random sign. Positive floats order like their bits, so it produces the same set of values without a float range.
Activity
rdoupe commentedon Oct 23, 2026
Claiming: #1951 (our test from #1922).
test: Draw the huge floats of extent_parity from their bit patterns (o…
obs-output: Port the encoder ROI checks and scaling (obs-rust#1974)
obs-scene: Add Tier 1 tests for the scene item render decisions port
obs-scene: Check the scene item render decisions port against the C
obs-scene: Port the scene item render decisions (obs-rust#2018)
obs-source: Check the source audio input steps port against the C
obs-source: Port the source audio input steps (obs-rust#2021)
obs-source: Check the transition clock and fit port against the C
obs-source: Check the transition clock and fit port against the C
obs-source: Port the transition clock and fit (obs-rust#2055)
obs-source: Add Tier 1 tests for the transition render and audio step…
obs-source: Check the transition render and audio steps port against …
obs-source: Add Tier 1 tests for the transition render and audio step…
obs-source: Check the transition render and audio steps port against …
obs-source: Add Tier 1 tests for the transition render and audio step…
obs-source: Check the transition render and audio steps port against …
obs-source: Port the transition render and audio steps (obs-rust#2184)
obs-core: Port the canvas texture draw and display clear decisions (o…