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:
parent
9ec9c9251f
commit
a34edb4936
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user