Created
July 24, 2018 13:28
-
-
Save truizlop/e3a17ac542940e2b44c765fece2e6758 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 Player : Arbitrary { | |
public static var arbitrary : Gen<Player> { | |
return Gen<Player>.fromElementsOf([Player.one, Player.two]) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment