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

Arbitrary section #5

Merged
merged 2 commits into from Jul 11, 2016
Merged

Arbitrary section #5

merged 2 commits into from Jul 11, 2016

Conversation

fedefernandez
Copy link
Contributor

This PR adds the Arbitrary section for scalacheck exercises.

Please @franciscodr could you review? Thanks

@dialelo @raulraja thoughts?


implicit lazy val myCharArbitrary = Arbitrary(Gen.oneOf('A', 'E', 'I', 'O', 'U'))

val validChars: Seq[Char] = res0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of validChars? To give a more specific meaning to res0 val?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, just to provide more information to the user

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@franciscodr
Copy link

Minor comment. LGTM

@ghost
Copy link

ghost commented Jul 11, 2016

LGTM!

@fedefernandez fedefernandez merged commit c1995eb into master Jul 11, 2016
@fedefernandez fedefernandez deleted the fede-arbitrary-generator branch July 11, 2016 08:43
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