about summary refs log tree commit diff
path: root/library/core/tests/num/flt2dec
AgeCommit message (Collapse)AuthorLines
2025-01-26Put all coretests in a separate cratebjorn3-1558/+0
2025-01-24Remove a bunch of emscripten test ignoresbjorn3-6/+0
They are either outdated as emscripten now supports i128 or they are subsumed by #[cfg_attr(not(panic = "unwind"), ignore]
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-3/+3
2024-07-29Reformat `use` declarations.Nicholas Nethercote-13/+10
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2023-10-22use visibility to check unused imports and delete some stmtsbohan-2/+0
2023-01-04Update rand in the stdlib tests, and remove the getrandom feature from itThom Chiovoloni-4/+2
2022-10-11Fix inconsistent rounding of 0.5 when formatted to 0 decimal placesAndrew Tribick-2/+2
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-2/+2
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
2021-06-06Move `flt2dec::{Formatted, Part}` to dedicated moduleGary Guo-1/+2
They are used by integer formatting as well and is not exclusive to float.
2021-03-22Preserve signed zero on roundtripJubilee Young-158/+88
This commit removes the previous mechanism of differentiating between "Debug" and "Display" formattings for the sign of -0 so as to comply with the IEEE 754 standard's requirements on external character sequences preserving various attributes of a floating point representation. In addition, numerous tests are fixed.
2021-01-15Re-enable all num tests on WASMSmitty-2/+0
This was partially done by #47365, but a few tests were missed in that PR.
2020-09-02flt2dec: properly handle uninitialized memoryRalf Jung-50/+52
2020-07-31also reduce some libcore test iteration countsRalf Jung-1/+2
2020-07-27mv std libs to library/mark-0/+1639