diff options
author | Nick Burch <nick@apache.org> | 2014-04-18 20:46:57 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2014-04-18 20:46:57 +0000 |
commit | a0c17162601a956d5efb683ca3375ab52b22b55c (patch) | |
tree | 50a732654d6e614719d811e02d9ba1cfc37e5883 /src/testcases/org/apache/poi/ss | |
parent | d9bf061db757f85fd50df1c6de22a4a742a12548 (diff) | |
download | poi-a0c17162601a956d5efb683ca3375ab52b22b55c.tar.gz poi-a0c17162601a956d5efb683ca3375ab52b22b55c.zip |
Unit test for column autosizing of % values
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1588562 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss')
-rw-r--r-- | src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java index bc489595de..9083b7048f 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java +++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java @@ -39,6 +39,12 @@ public abstract class BaseTestBugzillaIssues { protected BaseTestBugzillaIssues(ITestDataProvider testDataProvider) { _testDataProvider = testDataProvider; } + + public static void assertAlmostEquals(double expected, double actual, double fuzz) { + double diff = Math.abs(expected - actual); + if (diff > fuzz) + fail(actual + " not within " + fuzz + " of " + expected); + } /** * Test writing a hyperlink |