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

Introduce for_all function #12

Merged
merged 1 commit into from
Jan 1, 2015
Merged

Introduce for_all function #12

merged 1 commit into from
Jan 1, 2015

Conversation

Gab-km
Copy link
Contributor

@Gab-km Gab-km commented Oct 25, 2014

This Pull Request is to introduce for_all function for the issue #10.

This includes:

  • for_all function, which is a subsutitute for Arbitrary and Arbitrary#property with API limited
  • may_throw function to handle errors

This allows us:

  • To create properties a little easier than we are writing now

To learn how to write properties with for_all, see the issue #10.

To handle errors with for_all, we write properties as following:

for_all(
  (('integer', {"max": 100}),),
  'This is your func.',
  may_throw(your_func, SomeErrorType)
)

@Gab-km
Copy link
Contributor Author

Gab-km commented Oct 28, 2014

@futoase Is there any problems in this PR? Tell me anything frankly please. 😉

@Gab-km
Copy link
Contributor Author

Gab-km commented Nov 4, 2014

@futoase Hello, my master. You've been staying away from this PR.
Very sorry if I am a nuisance, and I should go away from this nice product... 😞

futoase added a commit that referenced this pull request Jan 1, 2015
Introduce `for_all` function
@futoase futoase merged commit e68135a into futoase:master Jan 1, 2015
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