The goog.labs.testing.CloseToMatcher Class

goog.labs.testing.CloseToMatcher(value, range)

The CloseTo matcher.

value {number}
The value to compare.
range {number}
The range to check within.

.describe()

.matches()

Determines if input value is within a certain range of the expected value.