Revert kotest workaround

This is a partial revert of bc0d26eeb5f5b626c2a5e98a0d7856da49cc4135
This commit is contained in:
Andreas Dangel
2020-11-06 10:46:32 +01:00
parent 54d4cc8f87
commit 18c2ab5621

View File

@ -8,7 +8,6 @@ import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.collections.shouldContainExactly
import io.kotest.matchers.collections.shouldContainExactlyInAnyOrder
import io.kotest.property.Arb
import io.kotest.property.arbitrary.arbitrary
import io.kotest.property.arbitrary.map
import io.kotest.property.arbitrary.shuffle
import io.kotest.property.checkAll
@ -25,11 +24,7 @@ class TypeOpsTest : FunSpec({
// for any permutation of input, the output should be the same
suspend fun checkMostSpecific(input: List<JTypeMirror>, output: List<JTypeMirror>) {
fun <A> shuffleOld(list: List<A>) = arbitrary {
list.shuffled(it.random)
}
checkAll(shuffleOld(input)) { ts ->
checkAll(Arb.shuffle(input)) { ts ->
TypeOps.mostSpecific(ts).shouldContainExactlyInAnyOrder(output)
}
}