expectAll (Function)

Signature: expectAll(conditions: List<bool>) -> Unit

Description: Runs every boolean in a list literal as an independent soft assertion. All conditions run even when an earlier one fails.

Parameters

  • conditions (List<bool>): A non-empty list literal of boolean conditions

Returns: Unit

Example

test("order total", fn() => expectAll([wrapMul(6, 7) == 42, length("Ada") == 3]))
test ("order total", \() => expectAll [wrapMul (6, 7) == 42, length "Ada" == 3])