Pudu programming language
Menu
API reference

Std.Test.that

1 declaration

fn

that: Str -> Bool -> Std.Test.Check

This is a callable function.

What it does

A check that holds when the condition does.

The plainest form, and the one that cannot say what went wrong: a condition

that is false has no other information in it. Prefer equals where there are

two values to compare, because it can say what they were.

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.

Back to Std.TestSearch related declarations