From: <bo...@us...> - 2013-02-03 11:06:36
|
Revision: 511 http://xmlunit.svn.sourceforge.net/xmlunit/?rev=511&view=rev Author: bodewig Date: 2013-02-03 11:06:30 +0000 (Sun, 03 Feb 2013) Log Message: ----------- merge fix for issue 3593368 Modified Paths: -------------- trunk/xmlunit/src/main/java-legacy/org/custommonkey/xmlunit/examples/FloatingPointTolerantDifferenceListener.java Property Changed: ---------------- 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-02-03 10:48:45 UTC (rev 510) +++ trunk/xmlunit/src/main/java-legacy/org/custommonkey/xmlunit/examples/FloatingPointTolerantDifferenceListener.java 2013-02-03 11:06:30 UTC (rev 511) @@ -1,6 +1,6 @@ /* ****************************************************************** -Copyright (c) 2008, Jeff Martin, Tim Bacon +Copyright (c) 2008,2013 Jeff Martin, Tim Bacon All rights reserved. Redistribution and use in source and binary forms, with or without @@ -60,7 +60,7 @@ try { double controlVal = Double.parseDouble(control); double testVal = Double.parseDouble(test); - return Math.abs(controlVal - testVal) < tolerance + return Math.abs(controlVal - testVal) <= tolerance ? DifferenceListener.RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL : DifferenceListener.RETURN_ACCEPT_DIFFERENCE; } catch (NumberFormatException nfe) { Property changes on: trunk/xmlunit/src/main/java-legacy/org/custommonkey/xmlunit/examples/FloatingPointTolerantDifferenceListener.java ___________________________________________________________________ Added: svn:mergeinfo + /branches/xmlunit-1.x/src/java/org/custommonkey/xmlunit/examples/FloatingPointTolerantDifferenceListener.java:346,353,494,510 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |