Last active
August 29, 2015 14:12
-
-
Save tomer-ben-david/dbe26012b7b3b30804e1 to your computer and use it in GitHub Desktop.
scalacheck generate sample of longs with different frequencies
This file contains 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
val arbLong: Gen[Long] = { | |
Gen.frequency((20, Arbitrary.arbDouble), (1, Long.MaxValue)).sample.get.arbitrary | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment