Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for floating point values? #43

Open
andrew-otiv opened this issue May 30, 2024 · 1 comment
Open

Support for floating point values? #43

andrew-otiv opened this issue May 30, 2024 · 1 comment

Comments

@andrew-otiv
Copy link

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!

@teymour-aldridge
Copy link
Collaborator

Hi sorry for the really late response, I don't think these are supported yet but more for lack of implementation than not being desirable. If you have an implementation that would be amazing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants