Skip to content

Commit 2116623

Browse files
Added f16 and f128 to tests/ui/consts/const-float-bits-conv.rs
1 parent c3ba654 commit 2116623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/consts/const-float-bits-conv.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn f128() {
8888
const_assert!(f128::from_bits(0x40029000000000000000000000000000), 12.5);
8989
const_assert!(f128::from_le_bytes(0x40029000000000000000000000000000u128.to_le_bytes()), 12.5);
9090
const_assert!(f128::from_bits(0x40094e40000000000000000000000000), 1337.0);
91-
const_assert!(f128::from_ne_bytes(0x40094e40000000000000000000000000u128.to_ne_bytes()), 1337.0);
91+
assert_eq!(f128::from_ne_bytes(0x40094e40000000000000000000000000u128.to_ne_bytes()), 1337.0);
9292
const_assert!(f128::from_bits(0xc002c800000000000000000000000000), -14.25);
9393
}
9494

0 commit comments

Comments
 (0)