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

impl arbitrary::Arbitrary for NotNan and OrderedFloat. #104

Merged
merged 1 commit into from Jan 5, 2022

Conversation

kpreid
Copy link
Contributor

@kpreid kpreid commented Jan 5, 2022

Adds an implementation of arbitrary::Arbitrary for both OrderedFloat and NotNan. This allows code that uses ordered-float to be more easily tested using cargo fuzz.

I've been successfully using this algorithm as an explicit function in my own project; adding it as a trait implementation for the type will make it possible to just use #[derive(Arbitrary)] on types containing NotNan or OrderedFloat.

@mbrubeck mbrubeck merged commit fd3583f into reem:master Jan 5, 2022
@kpreid kpreid deleted the arbitrary branch January 5, 2022 16:57
@mbrubeck
Copy link
Collaborator

mbrubeck commented Jan 5, 2022

Thanks! Published as ordered-float 2.10.0.

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

Successfully merging this pull request may close these issues.

None yet

2 participants