Skip to content

Commit f770948

Browse files
fix the fixme comment
1 parent 90bbebc commit f770948

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/tools/miri/tests/pass/float.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,10 +1060,8 @@ pub fn libm() {
10601060
// For pown (powi in rust) the C standard says:
10611061
// x^0 = 1 for all x not a sNaN.
10621062
// 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);
1063+
// 1 or the NaN. -> Add correct tests when we actually do this.
1064+
10671065
// f*::NAN is a quiet NAN and should return 1 as well.
10681066
assert_eq!(f32::NAN.powi(0), 1.0);
10691067
assert_eq!(f64::NAN.powi(0), 1.0);

0 commit comments

Comments
 (0)