goog.labs.testing.numbermatcher.CloseToMatcherProvided Bygoog.labs.testing.numbermatcherAll Implemented Interfacesgoog.labs.testing.MatcherAll Known Aliasesgoog.labs.testing.CloseToMatcherThe CloseTo matcher. new CloseToMatcher( value, range )ParametersvaluenumberThe value to compare. rangenumberThe range to check within. VIEW SOURCEInstance Methodsexpand_morethis.describe( value, opt_description ) → stringDescribes why the matcher failed. Specified bygoog.labs.testing.MatcherParametersvalue*The value that didn't match. opt_descriptionstring=A partial description to which the reason will be appended. ReturnsstringDescription of why the matcher failed. VIEW SOURCEexpand_morethis.matches( value ) → booleanDetermines if input value is within a certain range of the expected value. Specified bygoog.labs.testing.MatcherParametersvalue*The object to match. ReturnsbooleanWhether the input value matches this matcher. VIEW SOURCEStatic Functionsexpand_moreCloseToMatcher.closeTo( value, range ) → goog.labs.testing.numbermatcher.CloseToMatcherParametersvaluenumberThe expected value. rangenumberThe maximum allowed difference from the expected value. Returnsgoog.labs.testing.numbermatcher.CloseToMatcherA CloseToMatcher. VIEW SOURCE