moonbitlang/core/quickcheck/shrink does not have a README file
test {
// `Int` has a built-in Shrink instance that walks toward 0.
let candidates : Array[Int] = Shrink::shrink(100).collect()
assert_true(candidates.contains(0))
assert_true(candidates.length() > 0)
// `Bool` shrinks `true` to `false`, and `false` has no shrinks.
@debug.assert_eq(Shrink::shrink(true).collect(), [false])
@debug.assert_eq(Shrink::shrink(false).collect(), [])
}impl Shrink for FixedArray[X]Install
Installed by default