Skip to content

Fuzz: verify that roundtripping f64 through string results in the same value #8

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

Merged
merged 2 commits into from
Jan 11, 2021

Conversation

Shnatsel
Copy link
Contributor

No description provided.

@aldanor
Copy link
Owner

aldanor commented Jan 11, 2021

Looks good! What is the random float64 generator used by the fuzzer? I.e. would it often emit super large and super small floats? (in case it does you might also use ryu serializer because it will use scientific notation and standard library's to-string will not - thus giving you free code paths).

@Shnatsel
Copy link
Contributor Author

would it often emit super large and super small floats?

It will, if it notices that they trigger different code paths. I'll copy the ryu setup from the exhaustive f32 roundtrip test and see if that changes anything.

@aldanor
Copy link
Owner

aldanor commented Jan 11, 2021

Thanks!

@aldanor aldanor merged commit c251403 into aldanor:master Jan 11, 2021
@Shnatsel Shnatsel deleted the roundtrip-fuzz branch January 12, 2021 10:10
@aldanor
Copy link
Owner

aldanor commented May 13, 2021

@Shnatsel I kicked off fuzz testing 4 months ago and totally forgot about it...

#1099511627776	pulse  cov: 149 ft: 195 corp: 71/561b lim: 4096 exec/s: 148343 rss: 538Mb

1.1 trillion checks for each of the fuzz tests... I think it's safe to say it's safe enough 🤣

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.

2 participants