checkTrue (Function)

Signature: checkTrue(label: string, actual: bool) -> Unit

Description: Labeled assertion that a boolean expression is true.

Parameters

  • label (string): A short description
  • actual (bool): The boolean condition being asserted

Returns: Unit

Example

test("positive length", fn() => checkTrue("name length", length("Ada") > 0))
test ("positive length", \() => checkTrue ("name length", length "Ada" > 0))