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 90bbebc commit f770948Copy full SHA for f770948
src/tools/miri/tests/pass/float.rs
@@ -1060,10 +1060,8 @@ pub fn libm() {
1060
// For pown (powi in rust) the C standard says:
1061
// x^0 = 1 for all x not a sNaN.
1062
// FIXME: But the ecosystem is inconistent with this, in the future we should return either
1063
- // 1 or the NaN. Add correct tests when we actually do this.
1064
- // Should we follow glibc and libm or the C Standard itself?
1065
- // assert_ne!(SINGLE_SNAN.powi(0), 1.0);
1066
- // assert_ne!(DOUBLE_SNAN.powi(0), 1.0);
+ // 1 or the NaN. -> Add correct tests when we actually do this.
+
1067
// f*::NAN is a quiet NAN and should return 1 as well.
1068
assert_eq!(f32::NAN.powi(0), 1.0);
1069
assert_eq!(f64::NAN.powi(0), 1.0);
0 commit comments