referrerpolicy=no-referrer-when-downgrade

Crate per_thing_from_rational

Source
Expand description

ยงRunning

Running this fuzzer can be done with cargo hfuzz run per_thing_from_rational. honggfuzz CLI options can be used by setting HFUZZ_RUN_ARGS, such as -n 4 to use 4 threads.

ยงDebugging a panic

Once a panic is found, it can be debugged with cargo hfuzz run-debug per_thing_from_rational hfuzz_workspace/per_thing_from_rational/*.fuzz.

Structsยง

ArbitraryRounding ๐Ÿ”’
An [arbitrary::Arbitrary] [Rounding] mode.

Functionsยง

check ๐Ÿ”’
Assert that the parts of from_rational are correct for the given rounding mode.
main ๐Ÿ”’
Tries to demonstrate that from_rational is incorrect for any rounding modes.
round ๐Ÿ”’
Round a Fraction according to the given mode.