Skip to content

Commit

Permalink
Added f16 and f128 to tests/ui/consts/const-float-bits-conv.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rezwanahmedsami committed Aug 17, 2024
1 parent 2265e77 commit 984f364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ui/consts/const-float-bits-conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn f128() {
const_assert!(f128::from_bits(0x40029000000000000000000000000000), 12.5);
const_assert!(f128::from_le_bytes(0x40029000000000000000000000000000u128.to_le_bytes()), 12.5);
const_assert!(f128::from_bits(0x40094e40000000000000000000000000), 1337.0);
const_assert!(f128::from_ne_bytes(0x40094e40000000000000000000000000u128.to_ne_bytes()), 1337.0);
assert_eq!(f128::from_ne_bytes(0x40094e40000000000000000000000000u128.to_ne_bytes()), 1337.0);
const_assert!(f128::from_bits(0xc002c800000000000000000000000000), -14.25);
}

Expand Down

0 comments on commit 984f364

Please sign in to comment.