```enum class Bar { BAR1, BAR2; } data class Fo...
# kotest
j
Copy code
enum class Bar {
  BAR1, BAR2;
}

data class Foo {
  val enumSet: Set<Bar>,
}

val fooArb: Arb<Foo> = Arb.bind<Foo>()
Copy code
the target size requirement of 43 could not be satisfied after 430 consecutive samples
java.lang.IllegalStateException: the target size requirement of 43 could not be satisfied after 430 consecutive sample
My guess is that this is happening because it is trying to create a set of size 43, which is clearly impossible here. I would think that the arb generation would be smart enough to know that the maximum set size here is the number of enumerations in
Bar
. Thoughts? * Not a contribution *