Pudu programming language
Menu
API reference

Std.Test.fails

1 declaration

fn

fails: Str -> &Std.Test.Check -> Std.Test.Check

This is a callable function.

What it does

A check that holds exactly when the one it is given does not.

For a failure that is known and expected — a bug being tracked, a limit

being documented. It reports when the inner check starts holding, which is

what turns a known failure into something that tells you when it is fixed

rather than something that stays red until someone looks.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • & borrows a value for this call instead of moving or copying it.

Back to Std.TestSearch related declarations