Is there a simpler syntax than `Arb.bind<File&g...
# kotest
s
Is there a simpler syntax than
Arb.bind<File>().single()
to create a single arbitrary file? Specifically, I'm looking for something like
inline fun <reified T> arb(): T = Arb.bind<T>().single()
, but that does not compile.
Ok,
Arb.file().single()
is a bit better.
👍 1
l
I believe something closer to your second syntax is the way I go all the time. Arb.x().take(N) usually