Open
Description
We currently have at least two somewhat independent places where float functions are being tested:
- in
coretests/tests/float/mod.rs
- in
coretests/tests/floats/f*.rs
- in
std/tests/floats/f*.rs
Confusingly, coretests
also tests things that are actually in std
. The ones in num
have infrastructure to also run tests in const
, but do not have infrastructure to e.g. only run f128 tests on targets where that is reliable. For this reason, some tests are duplicated.
We should make sure we have one canonical place for all these tests that can serve the needs of all of them, and avoid duplication.
Cc @tgross35
Mentoring instructions
The main goal is to port the tests that are still in coretests/tests/floats/f*.rs
to use the infrastructure that we built in coretests/tests/float/mod.rs
. So to help:
- pick a test or a set of related tests in
coretests/tests/floats/f64.rs
- compare that with the versions in the other
f*.rs
files to see if they have anything beyond what f64 has - add a new test in
float/mod.rs
that replaces the ones inf*.rs
; see the existing tests there for examples
Metadata
Metadata
Assignees
Labels
Area: Floating point numbers and arithmeticArea: The testsuite used to check the correctness of rustcCategory: PRs that clean code up or issues documenting cleanup.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Relevant to the library team, which will review and decide on the PR/issue.