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

checkTrue("positive total", total > 0)
checkTrue ("positive total", total > 0)