expectTrue (Function)

Signature: expectTrue(actual: bool) -> Unit

Description: Asserts that a boolean expression is true.

Parameters

  • actual (bool): The boolean condition being asserted

Returns: Unit

Example

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