You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ye...@apache.org on 2007/09/26 11:55:32 UTC

svn commit: r579546 - /poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java

Author: yegor
Date: Wed Sep 26 02:55:31 2007
New Revision: 579546

URL: http://svn.apache.org/viewvc?rev=579546&view=rev
Log:
commented out a failing test until we find the reason.

Modified:
    poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java?rev=579546&r1=579545&r2=579546&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java Wed Sep 26 02:55:31 2007
@@ -313,16 +313,18 @@
         assertTrue(HSSFDateUtil.isADateFormat(style.getDataFormat(), style.getDataFormatString(wb)));
         assertTrue(HSSFDateUtil.isCellDateFormatted(cell));
     }
-    
+    /*
+        //commented out until find the reson.
     public void testDateBug_2Excel() {
         assertEquals(59.0, HSSFDateUtil.getExcelDate(createDate(1900, CALENDAR_FEBRUARY, 28)), 0.00001);
         assertEquals(61.0, HSSFDateUtil.getExcelDate(createDate(1900, CALENDAR_MARCH, 1)), 0.00001);
-        
+
         assertEquals(37315.00, HSSFDateUtil.getExcelDate(createDate(2002, CALENDAR_FEBRUARY, 28)), 0.00001);
         assertEquals(37316.00, HSSFDateUtil.getExcelDate(createDate(2002, CALENDAR_MARCH, 1)), 0.00001);
         assertEquals(37257.00, HSSFDateUtil.getExcelDate(createDate(2002, CALENDAR_JANUARY, 1)), 0.00001);
         assertEquals(38074.00, HSSFDateUtil.getExcelDate(createDate(2004, CALENDAR_MARCH, 28)), 0.00001);
     }
+    */
     
     public void testDateBug_2Java() {
         assertEquals(createDate(1900, Calendar.FEBRUARY, 28), HSSFDateUtil.getJavaDate(59.0));



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


TestHSSFDateUtil.java Patch

Posted by Pavel Krupets <pk...@yahoo.com>.
Hello,

Sorry CALENDAR months had invalid values (constants). Fixed and uncommented
test method.

With regards,
Pavel Krupets


Re[3]: svn commit: r579546 - /poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java

Posted by Yegor Kozlov <ye...@dinom.ru>.
I confirmed that it fails because of the recent changes in
HSSFFormulaEvaluator.

 Here is the list of the failing tests:
 
        new GenericFormulaTestCase("D487").genericTest();     //NullPointerException
        new GenericFormulaTestCase("D488").genericTest();       //EmptyStackException
        new GenericFormulaTestCase("D768").genericTest();       //EmptyStackException
        new GenericFormulaTestCase("D788").genericTest();       //EmptyStackException
        new GenericFormulaTestCase("D1304").genericTest();      //AssertionFailedError: Formula: SUM(E15:E17) @ 1303:6 expected:<0> but was:<5>
        new GenericFormulaTestCase("D1400").genericTest();     //EmptyStackException

 After rollback to an earlier version (-r576504) all the tests but
 D487 pass. I'm pretty sure after the full rollback it will pass also.

 So, how soon will it be fixed? If we don't get the fix tonight I
 suggest rolling it back to what we had 2 days ago.

 Pavel, any ideas?
        
 Yegor
        
> Well, now Gump complains on
> org.apache.poi.hssf.record.formula.functions.TestEverything.

> It's hard to diagnosis. The ant's output just says "BUILD FAILED".
> If I insert try/catch in GenericFormulaTestCase I can see that the
> following tests fail:

> new GenericFormulaTestCase("D487")
> new GenericFormulaTestCase("D488")
> new GenericFormulaTestCase("D768")
> new GenericFormulaTestCase("D788")
> new GenericFormulaTestCase("D1304")
> new GenericFormulaTestCase("D1400")

> Could it be because of the recent changes in HSSFFormulaEvaluator?
> Any thoughts?

> Yegor

>> On Wed, 26 Sep 2007, yegor@apache.org wrote:
>>> commented out a failing test until we find the reason.

>> The odd thing is that test passes on my computer (I'd already disabled the
>> test that did fail before committing). So I'm not quite sure why things
>> are failing on gump :/

>> Nick

>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
>> For additional commands, e-mail: dev-help@poi.apache.org


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
> For additional commands, e-mail: dev-help@poi.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re[2]: svn commit: r579546 - /poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java

Posted by Yegor Kozlov <ye...@dinom.ru>.
Well, now Gump complains on org.apache.poi.hssf.record.formula.functions.TestEverything.

It's hard to diagnosis. The ant's output just says "BUILD FAILED".
If I insert try/catch in GenericFormulaTestCase I can see that the
following tests fail:

new GenericFormulaTestCase("D487")
new GenericFormulaTestCase("D488")
new GenericFormulaTestCase("D768")
new GenericFormulaTestCase("D788")
new GenericFormulaTestCase("D1304")
new GenericFormulaTestCase("D1400")

Could it be because of the recent changes in HSSFFormulaEvaluator?
Any thoughts?

Yegor

> On Wed, 26 Sep 2007, yegor@apache.org wrote:
>> commented out a failing test until we find the reason.

> The odd thing is that test passes on my computer (I'd already disabled the
> test that did fail before committing). So I'm not quite sure why things
> are failing on gump :/

> Nick

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
> For additional commands, e-mail: dev-help@poi.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re: svn commit: r579546 - /poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java

Posted by Nick Burch <ni...@torchbox.com>.
On Wed, 26 Sep 2007, yegor@apache.org wrote:
> commented out a failing test until we find the reason.

The odd thing is that test passes on my computer (I'd already disabled the 
test that did fail before committing). So I'm not quite sure why things 
are failing on gump :/

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org