Revert kotest workaround
This is a partial revert of bc0d26eeb5f5b626c2a5e98a0d7856da49cc4135
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user