tieskedh
07/21/2023, 3:15 PMExhaustive
is passed into Arb.Companion.set
, it is not validated if it has range.last
items.
Is this intended? it currently has correct behaviour
possible changes:
• decrease upperlimit to values.size
,
• throw an out of range-exception when possible out of range
• throw the current exception immediately (we know it will fail) and no breaking changes.Emil Kantis
07/21/2023, 6:56 PMgen
is an exhaustive with too few values.tieskedh
07/24/2023, 2:37 PMvalues.shuffle(random).take(random)
Although this only works if values.size == values.toSet().size
.