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

Adds ability to generate arbitrary Dates and UUIDs #298

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

svdo
Copy link

@svdo svdo commented Jun 29, 2020

What's in this pull request?

I added definitions of arbitrary for the Date and UUID foundation types. I also included unit tests for both.

Why merge this pull request?

I believe these two generators are useful to may people, and especially the UUID generator is not trivial as it required me to study RFC 4122 and implement the UUID v4 spec.

What's worth discussing about this pull request?

  • I created a new test file for this. Not sure if that's what you want, or if you prefer to put it somewhere else.
  • I also included two Data utility functions for hex encoding. Those are also highly generic but not easy to find currently. Not sure if that's a problem or not.

What downsides are there to merging this pull request?

None that I can think of.

@svdo
Copy link
Author

svdo commented Jun 29, 2020

Please note that the build is passing, just the reporting back to this pull request doesn't seem to work...?

https://travis-ci.org/github/typelift/SwiftCheck/builds/703270249

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.

1 participant