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§

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.