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

math/big: TestBytes may fail (false negative) #12231

Closed
neelance opened this issue Aug 20, 2015 · 2 comments
Closed

math/big: TestBytes may fail (false negative) #12231

neelance opened this issue Aug 20, 2015 · 2 comments
Milestone

Comments

@neelance
Copy link
Member

If quick.Check generates a byte slice that starts with 0x0, then SetBytes accepts this slice, but Bytes correctly returns the slice without the leading zero. This makes the test fail.

@neelance
Copy link
Member Author

For context: I see this issue with my GopherJS compiler, since for some reason it generates different values with math/rand which affects testing/quick.

@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Aug 20, 2015
@gopherbot
Copy link

CL https://golang.org/cl/13814 mentions this issue.

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

No branches or pull requests

4 participants