From 109e8b4fb32353ae305971943af3c2baa03c9554 Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Fri, 27 Nov 2015 09:45:53 +0000 Subject: [PATCH] javadocs git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716811 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.5