From: <bo...@us...> - 2013-09-12 15:11:20
|
Revision: 543 http://sourceforge.net/p/xmlunit/code/543 Author: bodewig Date: 2013-09-12 15:11:18 +0000 (Thu, 12 Sep 2013) Log Message: ----------- using an absolute tolerance value might not be a good idea Modified Paths: -------------- trunk/xmlunit/src/main/java-legacy/org/custommonkey/xmlunit/examples/FloatingPointTolerantDifferenceListener.java Modified: trunk/xmlunit/src/main/java-legacy/org/custommonkey/xmlunit/examples/FloatingPointTolerantDifferenceListener.java =================================================================== --- trunk/xmlunit/src/main/java-legacy/org/custommonkey/xmlunit/examples/FloatingPointTolerantDifferenceListener.java 2013-09-12 15:10:05 UTC (rev 542) +++ trunk/xmlunit/src/main/java-legacy/org/custommonkey/xmlunit/examples/FloatingPointTolerantDifferenceListener.java 2013-09-12 15:11:18 UTC (rev 543) @@ -41,6 +41,10 @@ /** * Expects texts to be floating point numbers and treats them as * identical if they only differ by a given tolerance value (or less). + * + * <p>This implementation uses an absolute tolerance value value for + * all numbers encountered, calculating a difference relative to one + * of the numbers compared might be more appropriate in general.</p> */ public class FloatingPointTolerantDifferenceListener extends TextDifferenceListenerBase { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |