isLeft top-level constant

Matcher const isLeft

Matches if the object is of type Left.

Example :

The following test is successfull if and only if either.isLeft() returns true

Either<Failure, String> either = fetchData();

expect(either, isLeft); // Passes the test if `either.isLeft()` returns true

Implementation

const Matcher isLeft = _IsLeft();