8000
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 7759b70 commit 7171984Copy full SHA for 7171984
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