about summary refs log tree commit diff
path: root/src/etc/test-float-parse
AgeCommit message (Collapse)AuthorLines
2025-06-03move `test-float-parse` tool into `src/tools` dironur-ozkan-2395/+0
Obviously `test-float-parse` is a tool like any other in `src/tools`. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-06-02test-float-parse: apply `cfg(not(bootstrap))`Jieyou Xu-0/+2
Prior to stage 0 redesign, `test-float-parse` ran against in-tree std but now it runs against beta std. `f16::FromStr` were only present in in-tree std and not yet beta std, so apply `cfg(not(bootstrap))` gating to unbrick `./x check --stage=0`.
2025-05-18float: Add `f16` to `test-float-parse`Trevor Gross-3/+25
This requires a fix to the subnormal test to cap the maximum allowed value within the maximum mantissa.
2025-04-02Rollup merge of #139214 - bjorn3:edition_2024_rustfmt, r=compiler-errorsStuart Cook-20/+20
Tell rustfmt to use the 2024 edition in ./x.py fmt Most crates in this repo have been moved to the 2024 edition already. This also allows removing a rustfmt exclusion for a cg_clif test.
2025-04-01Move test-float-parse to the 2024 editionbjorn3-20/+20
2025-04-01chore: remove redundant backtickhighcloudwind-1/+1
Signed-off-by: highcloudwind <highcloud@aliyun.com>
2025-03-10Update rand to 0.9.0Chris Denton-15/+15
2025-03-05Rollup merge of #134063 - tgross35:dec2flt-refactoring, r=Noratrieb许杰友 Jieyou Xu (Joe)-3/+3
dec2flt: Clean up float parsing modules This is the first portion of my work adding support for parsing and printing `f16`. Changes in `float.rs` replace the magic constants with expressions and add some use of generics to better support the new float types. Everything else is related to documentation or naming; there are no functional changes in this PR. This can be reviewed by commit.
2025-03-02dec2flt: Refactor float traitsTrevor Gross-3/+3
A lot of the magic constants can be turned into expressions. This reduces some code duplication. Additionally, add traits to make these operations fully generic. This will make it easier to support `f16` and `f128`.
2025-03-02Simplify parallelization in test-float-parseTrevor Gross-226/+174
Currently, test case generators are launched in parallel and their test cases also run in parallel, all within the same pool. I originally implemented this with the assumption that there would be an advantage in parallelizing the generators themselves, but this turns out to not really have any benefit. Simplify things by running generators in series while keeping their test cases parallelized. This makes the code easier to follow, and there is no longer a need for MPSC or multiprogress bars. Additionally, the UI output can be made cleaner.
2024-12-30Fix typosericlehong-5/+5
Signed-off-by: ericlehong <193237094+ericlehong@users.noreply.github.com>
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-6/+6
2024-07-20Rewrite `test-float-parse` in RustTrevor Gross-554/+2337
The existing implementation uses Python to launch a set of Rust-written binaries. Unfortunately, this is currently broken; it seems that some updates meant it no longer compiles. There is also a problem that support for more float types (`f16`, `f128`) would be difficult to add since this is very specialized to `f32` and `f64`. Because of these sortcomings, migrate to a version written in Rust. This version should be significantly faster; test generators can execute in parallel, and test cases are chunked and parallelized. This should also resolve the preexisting "... the worker processes are leaked and stick around forever" comment. This change also introduces genericism over float types and properties, meaning it will be much easier to extend support to newly added types. `num::BigRational` is used in place of Python's fractions for infinite-precision calculations.
2023-10-10Add two lockfilesbjorn3-0/+75
2023-10-10Update rand dependency for test-float-parsebjorn3-1/+1
This removes a dependency on fuchsia-cprng which doesn't have any license info.
2023-06-22Update runtests.py : grammar correctionPreveen P-1/+1
2023-06-16Apply changes to fix python linting errorsTrevor Gross-0/+0
2023-05-31Explicit set `workspace.resolver = "1"`Weihang Lo-0/+1
rust-lang/cargo#10910 starts emitting warning if resolver is not set for 2021 edition package. We want to surpress the warning for now.
2021-09-20Migrate to 2021Mark Rousskov-1/+1
2021-07-17Changed dec2flt to use the Eisel-Lemire algorithm.Alex Huszagh-47/+43
Implementation is based off fast-float-rust, with a few notable changes. - Some unsafe methods have been removed. - Safe methods with inherently unsafe functionality have been removed. - All unsafe functionality is documented and provably safe. - Extensive documentation has been added for simpler maintenance. - Inline annotations on internal routines has been removed. - Fixed Python errors in src/etc/test-float-parse/runtests.py. - Updated test-float-parse to be a library, to avoid missing rand dependency. - Added regression tests for #31109 and #31407 in core tests. - Added regression tests for #31109 and #31407 in ui tests. - Use the existing slice primitive to simplify shared dec2flt methods - Remove Miri ignores from dec2flt, due to faster parsing times. - resolves #85198 - resolves #85214 - resolves #85234 - fixes #31407 - fixes #31109 - fixes #53015 - resolves #68396 - closes https://github.com/aldanor/fast-float-rust/issues/15
2020-07-31Run all tests if have no specified testsLzu Tao-3/+5
2020-07-29Avoid bool-like namingLzu Tao-3/+2
2020-07-10Avoid "whitelist"Tamir Duberstein-5/+3
Other terms are more inclusive and precise.
2020-04-10Enforce Python 3 as much as possibleGuillaume Gomez-1/+1
2020-04-05Stop importing int module in float parse testLinus Färnstrand-1/+0
2019-12-22Format the worldMark Rousskov-5/+5
2018-12-25Remove licensesMark Rousskov-120/+0
2018-08-05Remove unnecessary or invalid feature attributesvarkor-4/+0
2018-02-10fix typos in src/{bootstrap,ci,etc,lib{backtrace,core,fmt_macros}}Matthias Krüger-1/+1
2017-12-02Use more convenient and UNIX-agnostic shebangSébastien Santoro-1/+1
When using bash-specific features, scripts using env to call bash are more convenient, as bash be installed in different places according the OS. Same applies for other languages' interpreters.
2017-11-16fix some python3 incompatibilitiesCollin Anderson-1/+5
2016-09-17Remove unused codeEitan Adler-2/+0
2016-02-04drive-by doc fixesRobin Kruppe-5/+6
2016-02-04Add the kind of input from #31109 to the expensive tests (not run by default)Robin Kruppe-16/+43
2015-10-08typos: fix a grabbag of typos all over the placeCristi Cobzarenco-1/+1
2015-08-09Add optional, external tests for floating point parsing.Robin Kruppe-0/+664
Running these tests takes hours, so they are not run by @bors.