FloatingPointTolerantDifferenceListener should have line 63 updated as follows so it uses <= for comparing its values rather than <.
return Math.abs(controlVal - testVal) < tolerance
This would make it more consistent with its description "if they only differ by a given tolerance value (or less)". I also will expand its usefulness to the larger case of values that are textually different but numerically equal (e.g 0 = 0.0, 0.1000 = 0.1).
Log in to post a comment.