Std.Test.Property
8 public declarations
- forAll
Str -> UInt64 -> Int -> fn(Std.Random.Generator) -> (Std.Random.Generator, T) -> fn(T) -> Array[T] -> fn(T) -> Bool -> Std.Test.CheckA check that a property holds for every generated value.
- forAllInts
Str -> UInt64 -> Int -> Int -> fn(Int) -> Bool -> Std.Test.CheckA property over whole numbers below a bound.
- Gen
A source of values of one type.
- Shrink
Smaller candidates to try in place of a value that failed.
- shrinkArray
&Array[T] -> Array[Array[T]]Shorter sequences to try: whole chunks removed first, then one element
- shrinkInt
Int -> Array[Int]Simpler whole numbers to try: zero, then halfway back toward it, and the
- shrinkNothing
T -> Array[T]Nothing simpler to try, for a value with no smaller form.
- shrinkText
Str -> Array[Str]Shorter text to try, by the same rule sequences use.
