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 2766b77 commit 1b6bb45Copy full SHA for 1b6bb45
library/coretests/tests/floats/mod.rs
@@ -411,6 +411,8 @@ float_test! {
411
Float::NEG_INFINITY.midpoint(Float::NEG_INFINITY),
412
Float::NEG_INFINITY
413
);
414
+ assert!(Float::NEG_INFINITY.midpoint(Float::INFINITY).is_nan());
415
+ assert!(Float::INFINITY.midpoint(Float::NEG_INFINITY).is_nan());
416
assert!(Float::NAN.midpoint(1.0).is_nan());
417
assert!((1.0 as Float).midpoint(Float::NAN).is_nan());
418
assert!(Float::NAN.midpoint(Float::NAN).is_nan());
0 commit comments