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

Better coverage for Arbitrary[Option[A]] #76

Merged
merged 2 commits into from
Jan 5, 2014
Merged

Better coverage for Arbitrary[Option[A]] #76

merged 2 commits into from
Jan 5, 2014

Conversation

j3h
Copy link
Contributor

@j3h j3h commented Nov 15, 2013

Make sure that we sometimes generate None when size > 0.

Also:
- Comment explaining why we use frequency() in arbOption.
- Better name for the property testing it.
@rickynils
Copy link
Contributor

Thanks for finding this!

One question: Why resize(n / 2, arbitrary[T])? Why reduce the contained value by half?

rickynils pushed a commit that referenced this pull request Jan 5, 2014
Better coverage for Arbitrary[Option[A]]
@rickynils rickynils merged commit aa97434 into typelevel:master Jan 5, 2014
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