Adam S
04/20/2021, 6:25 PMauthKey
shrinks to 0, and so gives an invalid reason for failure.
test("expect 'actual code is failing', _not_ authKey length error") {
checkAll(
Arb.string(1..10, Arb.alphanumeric()),
) {
authKey,
->
withClue("authKey must have length > 0") {
authKey shouldHaveMinLength 1
}
fail("actual code is failing")
}
}
I’ve tried using Arb.string(1..10, Arb.alphanumeric()).filter { it.isEmpty() },
but then the test loops endlesslysam
04/20/2021, 6:38 PMAdam S
04/20/2021, 6:41 PM