kotest-property / io.kotest.property.arbitrary / MultiplesShrinker / shrink

shrink

fun shrink(value: Int): List<Int>

Returns the "next level" of shrinks for the given value, or empty list if a "base case" has been reached. For example, to shrink an int k we may decide to return k/2 and k-1.