Created
July 24, 2018 13:29
-
-
Save truizlop/8a5d8667e1073f36c59c4d4efa3e1099 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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