Skip to main content
Version: 5.8

Range Matchers

This page describes the rich assertions (matchers) that are available for ClosedRange and OpenEndRange types.

Ranges
value.shouldBeIn(range)Asserts that an object is contained in range, checking by value and not by reference.
value.shouldNotBeIn(range)Asserts that an object is not contained in range, checking by value and not by reference.