Skip to content

Commit 0653bac

Browse files
committed
Add a README paragraph re: testing
1 parent ce9e1dd commit 0653bac

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,17 @@ Infinity and NaN values can be parsed, along with scientific notation.
6666
Both little-endian and big-endian platforms are equally supported, with extra optimizations enabled
6767
on little-endian architectures.
6868

69+
## Testing
70+
71+
There are a few ways this crate is tested:
72+
73+
- A suite of explicit tests (taken from the original library) covering lots of edge cases.
74+
- A file-based test suite (taken from the original library; credits to Nigel Tao), ~5M tests.
75+
- All 4B float32 numbers are exhaustively roundtripped via ryu formatter.
76+
- Roundtripping a large quantity of random float64 numbers via ryu formatter.
77+
- Roundtripping float64 numbers and fuzzing random input strings via cargo-fuzz.
78+
- All explicit test suites run on CI; roundtripping and fuzzing are run manually.
79+
6980
## Performance
7081

7182
The presented parser seems to beat all of the existing C/C++/Rust float parsers known to us at the

0 commit comments

Comments
 (0)