Results for “Std.Test.Check”
25 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Test.Check
One check: what it was called, and what it found.
- Std.Test.Property.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.
- Std.Test.Property.forAllInts
Str -> UInt64 -> Int -> Int -> fn(Int) -> Bool -> Std.Test.CheckA property over whole numbers below a bound.
- Std.Test.absent
Str -> &Option[T] -> Std.Test.CheckA check that holds when an optional value is absent.
- Std.Test.all
Str -> &Array[T] -> fn(T) -> Bool -> Std.Test.CheckA check that holds when every value satisfies the test.
- Std.Test.closeTo
Str -> Decimal -> Decimal -> Decimal -> Std.Test.CheckA check that holds when two exact numbers differ by no more than a
- Std.Test.contains
Str -> &Array[T] -> T -> Std.Test.CheckA check that holds when a sequence contains a value.
- Std.Test.differs
Str -> &T -> &T -> Std.Test.CheckA check that holds when two values differ.
- Std.Test.each
&Array[T] -> fn(T) -> Str -> fn(T) -> Bool -> Array[Std.Test.Check]The same check over a table of cases.
- Std.Test.eachOf
&Array[T] -> fn(T) -> Std.Test.Check -> Array[Std.Test.Check]The same check over a table of cases, where each case builds its own check.
- Std.Test.equals
Str -> &T -> &T -> Std.Test.CheckA check that holds when two values are the same.
- Std.Test.errored
Str -> &Result[T, E] -> Std.Test.CheckA check that holds when a result failed.
- Std.Test.fails
Str -> &Std.Test.Check -> Std.Test.CheckA check that holds exactly when the one it is given does not.
- Std.Test.held
&Std.Test.Check -> BoolWhether a check held.
- Std.Test.not
Str -> Bool -> Std.Test.CheckA check that holds when the condition does not.
- Std.Test.pending
&Std.Test.Check -> BoolWhether a check was left to be written.
- Std.Test.present
Str -> &Option[T] -> Std.Test.CheckA check that holds when an optional value is present, whatever it holds.
- Std.Test.runIf
Bool -> Str -> &Std.Test.Check -> Std.Test.CheckA check kept only when a condition holds, and left pending otherwise.
- Std.Test.sameElements
Str -> &Array[T] -> &Array[T] -> Std.Test.Check where T: OrdA check that holds when two sequences hold the same values, in any order.
- Std.Test.skipIf
Bool -> Str -> &Std.Test.Check -> Std.Test.CheckA check left pending when a condition holds, and kept otherwise.
- Std.Test.succeeded
Str -> &Result[T, E] -> Std.Test.CheckA check that holds when a result succeeded.
- Std.Test.suite
Str -> &Array[Std.Test.Check] -> Std.Test.SuiteA group of checks under a name.
- Std.Test.that
Str -> Bool -> Std.Test.CheckA check that holds when the condition does.
- Std.Test.todo
Str -> Str -> Std.Test.CheckA check not yet written, carrying why.
- Std.Test.withCheck
&Std.Test.Suite -> &Std.Test.Check -> Std.Test.SuiteThe suite with another check in it.
