actual property

Iterable<String> get actual

A description of the conditions the checked value satisfied.

Matches the format of expected, except it will be cut off after the label for the subject that had a failing expectation. For example, if the equality check for the length of a list fails:

a List that: has length that:

If the subject with a failing expectation is the root, returns an empty list. Instead the "Actual: " value from the rejection can be used without indentation.

Implementation

Iterable<String> get actual =>
    _actualOverlap > 0 ? expected.take(_actualOverlap + 1) : const [];