diff options
author | Andrew C. Oliver <acoliver@apache.org> | 2002-04-28 16:40:18 +0000 |
---|---|---|
committer | Andrew C. Oliver <acoliver@apache.org> | 2002-04-28 16:40:18 +0000 |
commit | 0c69d88afedf96c7d4f8383f9ad6fc4e1ccafd3b (patch) | |
tree | 444271a3e5c05fc16718b8a6d884bc75ed90619f /src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java | |
parent | 2ac58045b5ea3f182e8eaa7cffd202d6b39a8cc4 (diff) | |
download | poi-0c69d88afedf96c7d4f8383f9ad6fc4e1ccafd3b.tar.gz poi-0c69d88afedf96c7d4f8383f9ad6fc4e1ccafd3b.zip |
tests parenthesis
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352528 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java b/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java index dfe4bb9122..1dee21cc63 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java @@ -181,6 +181,14 @@ extends TestCase { 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 @@ extends TestCase { //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()) )); |