-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
test: update duplicate many_digits test to use f64 instead of f32 #149744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Replace the f32 test case with an f64 equivalent to improve coverage for parsing large digit counts in double-precision floating-point conversion.
|
rustbot has assigned @Mark-Simulacrum. Use |
|
Any reason to replace the test rather than adding a new one with the f64 case? That seems better to me, though I'm not familiar with this particular area of code. |
There were two f32 tests, but really just one duplicated. This PR replaces one of the f32 tests by the equivalent f64 test, thus improving coverage. It seems that this PR was the original goal. |
|
@bors r+ Sounds good, thanks! |
Rollup of 7 pull requests Successful merges: - #149744 (test: update duplicate many_digits test to use f64 instead of f32) - #149946 (mir_build: Move and rename code for partitioning match candidates) - #149987 (Move ambient cdb discovery from compiletest to bootstrap) - #149990 (Improve amdgpu docs: Mention device-libs and xnack) - #149994 (Allow vector types for amdgpu) - #149997 (Link POSIX instead of Linux manual for Instant) - #150010 (Correct library linking for hexagon targets in run-make tests) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #149744 - lemire:main, r=Mark-Simulacrum test: update duplicate many_digits test to use f64 instead of f32 Replace the f32 test case with an f64 equivalent to improve coverage for parsing large digit counts in double-precision floating-point conversion. Specifically, this PR updates the `many_digits` test in `library/coretests/tests/num/dec2flt/parse.rs` to test f64 (double-precision) parsing instead of f32 (single-precision). The test verifies that decimal strings with an excessive number of digits (beyond `Decimal::MAX_DIGITS`) are parsed correctly, ensuring proper truncation of insignificant digits. Previously, the same test was repeated twice (see comment #86761 (comment) by `@Viatorus).` ## Changes - Replaced the duplicated f32 test case with an equivalent f64 test case. - Updated the expected bit pattern and input string to a very long decimal with many trailing zeros, testing the limits of f64 precision.
Replace the f32 test case with an f64 equivalent to improve coverage for parsing large digit counts in double-precision floating-point conversion. Specifically, this PR updates the
many_digitstest inlibrary/coretests/tests/num/dec2flt/parse.rsto test f64 (double-precision) parsing instead of f32 (single-precision).The test verifies that decimal strings with an excessive number of digits (beyond
Decimal::MAX_DIGITS) are parsed correctly, ensuring proper truncation of insignificant digits. Previously, the same test was repeated twice (see comment #86761 (comment) by @Viatorus).Changes