kotest-assertions / io.kotest.properties.shrinking / ChooseShrinker

ChooseShrinker

class ChooseShrinker : Shrinker<Int>

Constructors

<init>

ChooseShrinker(min: Int, max: Int)

Properties

max

val max: Int

min

val min: Int

Functions

shrink

Given a value, T, this function returns possible "smaller" values to be used as candidates for shrinking.

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