Files
rust/library/coretests/tests
Matthias Krüger 3ebdd59770 Rollup merge of #141669 - tgross35:float-test-cleanup, r=RalfJung
float: Replace some approximate assertions with exact

As was mentioned at [1], we currently use `assert_approx_eq` for testing
some math functions that guarantee exact results. Replace approximate
assertions with exact ones for the following:

* `ceil`
* `floor`
* `fract`
* `from_bits`
* `mul_add`
* `round_ties_even`
* `round`
* `trunc`

This likely wasn't done in the past to avoid writing out exact decimals
that don't match the intuitive answer (e.g. 1.3 - 1.0 = 0.300...004),
but ensuring our results are accurate seems more important here.

[1]: https://github.com/rust-lang/rust/pull/138087#issuecomment-2842069281

The first commit is a small bit of macro cleanup.

try-job: aarch64-gnu
try-job: x86_64-gnu-aux
2025-05-30 07:01:31 +02:00
..
2025-05-24 08:24:52 -04:00
2025-02-13 13:10:21 -08:00
2025-02-11 18:42:19 -08:00
2025-05-13 12:34:53 +09:00
2025-05-24 08:24:52 -04:00
2025-05-20 21:16:23 +00:00
2025-05-12 15:33:37 +02:00
2025-03-28 10:18:04 +01:00