Testing module

fail

procedureextensionsince 0.28.0Source

Marks the test as failed and lets it go on.

Example
fail(t, "this never worked");

This one is meant to fail, so there is nothing to run.

fail :: (t: *Test, message := "failed", loc := #caller_location)

Marks the test as failed and lets it go on.

Parameters

t: *Test
the running test.
message := "failed"
what to report.
loc := #caller_location
where the check is written, shown when it fails. Leave the default.
Example
fail(t, "this never worked");

This one is meant to fail, so there is nothing to run.

See also