about summary refs log tree commit diff
path: root/compiler/rustc_log/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-06-14 11:27:11 +0200
committerGitHub <noreply@github.com>2025-06-14 11:27:11 +0200
commit4cf4473b8503c20a8885e5486bd7275dfb5f710e (patch)
treeb49ad0baadf1128d62ce30c0a822fbdac9885de1 /compiler/rustc_log/src/lib.rs
parentdb23a76217490844d404ba5931798df74fd0268e (diff)
parent25ec235b86f97a5b9f3d9ab1ab1bc72867c6bea4 (diff)
downloadrust-4cf4473b8503c20a8885e5486bd7275dfb5f710e.tar.gz
rust-4cf4473b8503c20a8885e5486bd7275dfb5f710e.zip
Rollup merge of #142243 - RalfJung:float-test-dedup, r=tgross35
float tests: deduplicate min, max, and rounding tests

Part of https://github.com/rust-lang/rust/issues/141726

Best reviewed commit-by-commit.

- Use `assert_biteq!` in the `mod.rs` tests. This requires some trickery to make shadowing macros with imports work.
- The min, max, minimum, maximum tests in `tests/floats/f*.rs` are entirely subsumed by what we already have in `tests/float/mod.rs`, so I just removed them.
- The rounding tests (floor etc) in `f*.rs` had more test points, so I copied them over. They didn't have `0.5` and `-0.5` though which seem like interesting points in particular regarding the sign of the resulting zero if that's what it sounds to, and they didn't max min/max/inf/nan tests, so this was really a merger of both tests.

r? ``@tgross35``
Diffstat (limited to 'compiler/rustc_log/src/lib.rs')
0 files changed, 0 insertions, 0 deletions