closeTo function

Matcher closeTo (num value, num delta)

Returns a matcher which matches if the match argument is within delta of some value.

In other words, this matches if the match argument is greater than than or equal value-delta and less than or equal to value+delta.

Implementation

Matcher closeTo(num value, num delta) => new _IsCloseTo(value, delta);