Testing module

log

procedure · 1 overloadsince 0.28.0Source

Prints a line to the test's output, which jacket test shows when the test fails.

ExampleOpen in playground ↗
reports_progress :: (t: *Test) {
    log(t, "step % of %", 1, 3);
}

This one is only checked to compile, not run.

log :: (t: *Test, format: string, args: ..Any)

Prints a line to the test's output, which jacket test shows when the test fails.

Parameters

t: *Test
the running test.
format: string
the format string, as for tprint.
args: ..Any
the values to print into it.
ExampleOpen in playground ↗
reports_progress :: (t: *Test) {
    log(t, "step % of %", 1, 3);
}

This one is only checked to compile, not run.

See also