isSome top-level constant

Matcher const isSome

A matcher that verifies an Option is Some.

expect(Some(42), isSome);
expect(None(), isNot(isSome));

Implementation

const Matcher isSome = _IsSome();