small tweak to unit test which was silently creating UnknownPtgs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@694615 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Josh Micich 2008-09-12 06:14:07 +00:00
parent 9ec9c9251f
commit a34edb4936
1 changed files with 3 additions and 3 deletions

View File

@ -35,9 +35,8 @@ import junit.framework.TestCase;
public final class TestArrayPtg extends TestCase {
private static final byte[] ENCODED_PTG_DATA = {
0x40, 0x00,
0x08, 0x00,
0, 0, 0, 0, 0, 0, 0, 0,
0x40,
0, 0, 0, 0, 0, 0, 0,
};
private static final byte[] ENCODED_CONSTANT_DATA = {
2, // 3 columns
@ -150,6 +149,7 @@ public final class TestArrayPtg extends TestCase {
RecordInputStream in = new TestcaseRecordInputStream(ArrayPtg.sid, fullData);
Ptg[] ptgs = Ptg.readTokens(ENCODED_PTG_DATA.length, in);
assertEquals(1, ptgs.length);
ArrayPtg aPtg = (ArrayPtg) ptgs[0];
assertEquals(operandClass, aPtg.getPtgClass());
}