aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2010-08-06 08:59:12 +0000
committerYegor Kozlov <yegor@apache.org>2010-08-06 08:59:12 +0000
commit3f83900581c446a61f7aa2cfe04868a9c3b4378e (patch)
treeec811f749e3b563695fe542a3b89b7424dbc6c5f /src/testcases
parentfff843e65a601208f4aa297240616ade3911bf4b (diff)
downloadpoi-3f83900581c446a61f7aa2cfe04868a9c3b4378e.tar.gz
poi-3f83900581c446a61f7aa2cfe04868a9c3b4378e.zip
increased allowed range in TestHSSFSheet#testAutoSizeDate() to make tests on MacOS X pass
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@982909 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java
index cf9d7bba57..c041a94ad4 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java
@@ -579,10 +579,10 @@ public final class TestHSSFSheet extends BaseTestSheet {
s.autoSizeColumn((short)1);
// Size ranges due to different fonts on different machines
- assertTrue("Single number column too small", s.getColumnWidth(0) > 350);
- assertTrue("Single number column too big", s.getColumnWidth(0) < 500);
- assertTrue("6 digit number column too small", s.getColumnWidth(1) > 1500);
- assertTrue("6 digit number column too big", s.getColumnWidth(1) < 2000);
+ assertTrue("Single number column too small: " + s.getColumnWidth(0), s.getColumnWidth(0) > 350);
+ assertTrue("Single number column too big: " + s.getColumnWidth(0), s.getColumnWidth(0) < 550);
+ assertTrue("6 digit number column too small: " + s.getColumnWidth(1), s.getColumnWidth(1) > 1500);
+ assertTrue("6 digit number column too big: " + s.getColumnWidth(1), s.getColumnWidth(1) < 2000);
// Set a date format
HSSFCellStyle cs = wb.createCellStyle();
@@ -598,10 +598,10 @@ public final class TestHSSFSheet extends BaseTestSheet {
s.autoSizeColumn((short)0);
s.autoSizeColumn((short)1);
- assertTrue("Date column too small", s.getColumnWidth(0) > 4750);
- assertTrue("Date column too small", s.getColumnWidth(1) > 4750);
- assertTrue("Date column too big", s.getColumnWidth(0) < 6500);
- assertTrue("Date column too big", s.getColumnWidth(0) < 6500);
+ assertTrue("Date column too small: " + s.getColumnWidth(0), s.getColumnWidth(0) > 4750);
+ assertTrue("Date column too small: " + s.getColumnWidth(1), s.getColumnWidth(1) > 4750);
+ assertTrue("Date column too big: " + s.getColumnWidth(0), s.getColumnWidth(0) < 6500);
+ assertTrue("Date column too big: " + s.getColumnWidth(0), s.getColumnWidth(0) < 6500);
}
/**