Skip to content

Commit 9e5bdb7

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fn f128() {
136136
const_assert!(f128::from_bits(0x40029000000000000000000000000000), 12.5);
137137
const_assert!(f128::from_le_bytes(0x40029000000000000000000000000000u128.to_le_bytes()), 12.5);
138138
const_assert!(f128::from_bits(0x40094e40000000000000000000000000), 1337.0);
139-
const_assert!(f128::from_ne_bytes(0x40094e40000000000000000000000000u128.to_ne_bytes()), 1337.0);
139+
assert_eq!(f128::from_ne_bytes(0x40094e40000000000000000000000000u128.to_ne_bytes()), 1337.0);
140140
const_assert!(f128::from_bits(0xc002c800000000000000000000000000), -14.25);
141141
}
142142

0 commit comments

Comments
 (0)