struct

Spectator::Matchers::RangeMatcher(ExpectedType)

Inherits Spectator::Matchers::ValueMatcher / Spectator::Matchers::StandardMatcher / Spectator::Matchers::Matcher / Struct / Value / Object

Matcher that tests whether a value is in a given range. The Range#includes? method is used for this check.

Constructors

new(expected : Spectator::Value(ExpectedType))

Creates the value matcher. The expected value is stored for later use.

Source

Instance methods

description

Short text about the matcher's purpose. This explains what condition satisfies the matcher. The description is used when the one-liner syntax is used.

Source
exclusive

Returns a new matcher, with the same bounds, but uses an exclusive range.

Source
inclusive

Returns a new matcher, with the same bounds, but uses an inclusive range.

Source