zebra_test::prelude::prop::num::f32

Constant ANY

pub const ANY: Any;
Expand description

Generates literally arbitrary floating-point values, including infinities and quiet NaNs (but not signaling NaNs).

Equivalent to POSITIVE | NEGATIVE | NORMAL | SUBNORMAL | ZERO | INFINITE | QUIET_NAN.

See SIGNALING_NAN if you also want to generate signalling NaNs. This signalling NaNs are not included by default since in most contexts they either make no difference, or if the process enabled the relevant CPU mode, result in hardware-triggered exceptions that usually just abort the process.

Before proptest 0.4.1, this erroneously generated values in the range 0.0..1.0.