Sebastian Schuberth
08/16/2021, 11:42 AMsam
08/16/2021, 11:44 AMSebastian Schuberth
08/16/2021, 11:45 AMSebastian Schuberth
08/16/2021, 11:46 AMsam
08/16/2021, 11:47 AMsam
08/16/2021, 11:47 AMsam
08/16/2021, 11:48 AMval mystrings = listOf("a", "a", "b", "c")
checkAll(Exhaustive.collection(mystrings), Exhaustive.collection(mystrings)) { a, b ->
if (a !== b) {
// test here
}
}
Sebastian Schuberth
08/16/2021, 11:48 AMSebastian Schuberth
08/16/2021, 11:49 AMcartesian(myobjects, myobjects)
?sam
08/16/2021, 11:50 AMSebastian Schuberth
08/16/2021, 11:53 AMsam
08/16/2021, 11:54 AMcheckAll(Exhaustive.cartesian(mystrings.exhaustive(), mystrings.exhaustive()) { a, b -> Pair(a, b) }
.filter { it.first != it.second }) { pairs ->
}
sam
08/16/2021, 11:54 AMsam
08/16/2021, 11:54 AMsam
08/16/2021, 11:54 AMSebastian Schuberth
08/16/2021, 11:55 AMsam
08/16/2021, 11:55 AMcartesianPairs