Make scoped keys more frequent

This commit is contained in:
Dale Wijnand 2017-10-07 12:32:25 +01:00
parent 74ac7d9e07
commit fb28c201c8
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ object BuildDSLInstances {
def withScope[K <: Scoped.ScopingSetting[K]](keyGen: Gen[K]): Arbitrary[K] =
Arbitrary(Gen.frequency(
50 -> keyGen,
5 -> keyGen,
1 -> (for (key <- keyGen; scope <- arbitrary[Scope]) yield key in scope)
))