Skip to content

Support for floating point values? #43

@andrew-otiv

Description

@andrew-otiv

I'm hitting "the trait DefaultMutator is not implemeted for f64" while trying to automatically derive fuzzcheck::DefaultMonitor for a large tree of code generated types that include floating point values.

the trait DefaultMutator is not implemented for f64
= help: the following other types implement trait DefaultMutator:
i16
i32
i64
i8
isize
u16
u32
u64
and 2 others

This is on the current main branch:
"fuzzcheck": crate.spec(
git="https://github.com/loiclec/fuzzcheck-rs.git",
rev="9077693abd90bb44955ed008749b5902acfa65bd",
),

What's the status on supporting f32, f64 types? I could write a minimized example, but I'm guessing this just isn't implemented yet, possibly becuase IEEE floats are weird about comparisons and non-unique binary representations.

Thanks for the promising looking library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions