From: Javen O'Neal Date: Fri, 27 Nov 2015 09:45:53 +0000 (+0000) Subject: javadocs X-Git-Tag: REL_3_14_BETA1~72 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=109e8b4fb32353ae305971943af3c2baa03c9554;p=poi.git javadocs git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716811 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java index 2af5c38870..7e04f12d73 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java +++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java @@ -56,6 +56,11 @@ public abstract class BaseTestBugzillaIssues { _testDataProvider = testDataProvider; } + /** + * Unlike org.junit.Assert.assertEquals(double expected, double actual, double delta), + * where delta is an absolute error value, this function's factor is a relative error, + * so it's easier to express "actual is within 5% of expected". + */ public static void assertAlmostEquals(double expected, double actual, float factor) { double diff = Math.abs(expected - actual); double fuzz = expected * factor;