From: SourceForge.net <no...@so...> - 2013-02-03 10:49:39
|
Bugs item #3593368, was opened at 2012-12-06 15:21 Message generated for change (Comment added) made by bodewig You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377768&aid=3593368&group_id=23187 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Pending >Resolution: Fixed Priority: 5 Private: No Submitted By: david rees (reesd) Assigned to: Nobody/Anonymous (nobody) Summary: FloatingPointTolerantDifferenceListener should use <= Initial Comment: 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). ---------------------------------------------------------------------- >Comment By: Stefan Bodewig (bodewig) Date: 2013-02-03 02:49 Message: fixed with svn revision 510, will be fixed in XMLUnit 1.4. Thanks ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377768&aid=3593368&group_id=23187 |