From 7bc7ae03dafea00ace5ba5a9bd45290960e6f2a4 Mon Sep 17 00:00:00 2001 From: Avik Sengupta Date: Tue, 6 May 2003 15:37:10 +0000 Subject: [PATCH] PR 13292, size of FuncPtg git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353088 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/record/formula/TestFuncPtg.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/testcases/org/apache/poi/hssf/record/formula/TestFuncPtg.java b/src/testcases/org/apache/poi/hssf/record/formula/TestFuncPtg.java index b25e11cf69..b0b1c5c081 100755 --- a/src/testcases/org/apache/poi/hssf/record/formula/TestFuncPtg.java +++ b/src/testcases/org/apache/poi/hssf/record/formula/TestFuncPtg.java @@ -86,15 +86,17 @@ public class TestFuncPtg extends TestCase { fakeData[0] = (byte)0x41; fakeData[1] = (byte)0x20; //function index - fakeData[2] = (byte)0; //leftovers begin + fakeData[2] = (byte)0; fakeData[3] = (byte)8; FuncPtg ptg = new FuncPtg(fakeData, 0); assertEquals("Len formula index is not 32(20H)",(int)0x20, ptg.getFunctionIndex()); assertEquals("Number of operands in the len formula",1, ptg.getNumberOfOperands()); - assertEquals("first leftover byte is not 0", (byte)0, ptg.leftOvers[0]); - assertEquals("second leftover byte is not 8", (byte)8, ptg.leftOvers[1]); + assertEquals("Function Name","LEN",ptg.getName()); + assertEquals("Ptg Size",3,ptg.getSize()); + //assertEquals("first leftover byte is not 0", (byte)0, ptg.leftOvers[0]); + //assertEquals("second leftover byte is not 8", (byte)8, ptg.leftOvers[1]); } -- 2.39.5