tests parenthesis
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352528 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7aa28a6d00
commit
110b643b9f
@ -181,6 +181,14 @@ extends TestCase {
|
|||||||
throws Exception {
|
throws Exception {
|
||||||
orderTest("1*2+3^4");
|
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
|
* tests order wrting out == order writing in for a given formula
|
||||||
@ -279,7 +287,7 @@ extends TestCase {
|
|||||||
//get our minimum values
|
//get our minimum values
|
||||||
r = s.getRow((short)0);
|
r = s.getRow((short)0);
|
||||||
c = r.getCell((short)1);
|
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())
|
( ("1"+operator+"1").equals(c.getCellFormula())
|
||||||
));
|
));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user