https://kotlinlang.org logo
#kotest
Title
# kotest
t

Toddobryan

09/29/2022, 5:17 AM
Nvm. I figured it out by looking more closely at the types. For posterity, you need to combine the values to create a new
Generator
, i.e.
Copy code
Arb.bind(Arb.string(), Arb.string()) { s1, s2 -> Pair(s1, s2) }.checkAll { (s1, s2) -> ... }
Sorry for the noise.
rubber duck 3
e

Emil Kantis

09/29/2022, 12:36 PM
Note that there's no need to bind into the pair first. You could just use
checkAll
in case you simply want to test two strings: https://kotest.io/docs/proptest/property-test-functions.html#check-all