Skip to content

Instantly share code, notes, and snippets.

@truizlop
Created July 24, 2018 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save truizlop/8a5d8667e1073f36c59c4d4efa3e1099 to your computer and use it in GitHub Desktop.
Save truizlop/8a5d8667e1073f36c59c4d4efa3e1099 to your computer and use it in GitHub Desktop.
extension PointData : Arbitrary {
public static var arbitrary : Gen<PointData> {
return Gen<(Point, Point)>.zip(Point.arbitrary, Point.arbitrary).map(PointData.init)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment