We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7d880e commit dc526c1Copy full SHA for dc526c1
library/coretests/tests/floats/mod.rs
@@ -420,6 +420,8 @@ float_test! {
420
Float::NEG_INFINITY.midpoint(Float::NEG_INFINITY),
421
Float::NEG_INFINITY
422
);
423
+ assert!(Float::NEG_INFINITY.midpoint(Float::INFINITY).is_nan());
424
+ assert!(Float::INFINITY.midpoint(Float::NEG_INFINITY).is_nan());
425
assert!(Float::NAN.midpoint(1.0).is_nan());
426
assert!((1.0 as Float).midpoint(Float::NAN).is_nan());
427
assert!(Float::NAN.midpoint(Float::NAN).is_nan());
0 commit comments