Testing module

expect

procedure · 1 overloadsince 0.28.0Source
Example
expect(1 + 1 == 2);
expect :: (condition: bool, message := "", loc := #caller_location) -> bool

Parameters

condition: bool
what must be true.
message := ""
what to report instead of the default.
loc := #caller_location
where the check is written, shown when it fails. Leave the default.

Returns

bool
Example
expect(1 + 1 == 2);

See also