acoliver    02/04/28 09:40:18

  Modified:    src/testcases/org/apache/poi/hssf/usermodel
                        TestFormulas.java
  Log:
  tests parenthesis
  
  Revision  Changes    Path
  1.6       +9 -1      
jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java
  
  Index: TestFormulas.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-poi/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestFormulas.java 28 Apr 2002 16:10:00 -0000      1.5
  +++ TestFormulas.java 28 Apr 2002 16:40:18 -0000      1.6
  @@ -181,6 +181,14 @@
       throws Exception {
           orderTest("1*2+3^4");
       }
  +    
  +    /**
  +     * Tests that parenthesis are obeyed
  +     */
  +    public void testParenthesis() 
  +    throws Exception {
  +        orderTest("(1*3)+2+(1+2)*(3^4)^5");
  +    }
   
       /**
        * tests order wrting out == order writing in for a given formula
  @@ -279,7 +287,7 @@
           //get our minimum values
           r = s.getRow((short)0);
           c = r.getCell((short)1);
  -        assertTrue("minval Formula is as expected",
  +        assertTrue("minval Formula is as expected 1"+operator+"1 != 
"+c.getCellFormula(),
           ( ("1"+operator+"1").equals(c.getCellFormula())
           ));
           
  
  
  


Reply via email to