isSome top-level constant

Matcher const isSome

Matches if the object is of type Some

Example :

The following test is successfull if and only if option.isSome() returns true

Option<String> option = fetchData();

expect(option, isSome);

Implementation

const Matcher isSome = _IsSome();