diff options
author | Nick Burch <nick@apache.org> | 2011-03-05 15:25:39 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2011-03-05 15:25:39 +0000 |
commit | f05c5454fcff4f5f4e3d0661df1aa996de2da603 (patch) | |
tree | 66286182b558985aa8756418f1e721195aeb06d2 /src/scratchpad/testcases/org/apache/poi/hmef/TestCompressedRTF.java | |
parent | 5805f3b66001219a382427f995b323fcba40d700 (diff) | |
download | poi-f05c5454fcff4f5f4e3d0661df1aa996de2da603.tar.gz poi-f05c5454fcff4f5f4e3d0661df1aa996de2da603.zip |
Two more differences between the LZW in HDGF and HMEF:
* Little Endian vs Big Endian storage of the code position
* Initial dictionary position is the end of pre-fill, if there is one, rather than always being position 0
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1078300 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad/testcases/org/apache/poi/hmef/TestCompressedRTF.java')
-rw-r--r-- | src/scratchpad/testcases/org/apache/poi/hmef/TestCompressedRTF.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hmef/TestCompressedRTF.java b/src/scratchpad/testcases/org/apache/poi/hmef/TestCompressedRTF.java index ad8f6692b1..36991c43cf 100644 --- a/src/scratchpad/testcases/org/apache/poi/hmef/TestCompressedRTF.java +++ b/src/scratchpad/testcases/org/apache/poi/hmef/TestCompressedRTF.java @@ -93,7 +93,7 @@ public final class TestCompressedRTF extends TestCase { * Check that we can decode the first 8 codes * (1 flag byte + 8 codes) */ - public void DISABLEDtestFirstBlock() throws Exception { + public void testFirstBlock() throws Exception { HMEFMessage msg = new HMEFMessage( _samples.openResourceAsStream("quick-winmail.dat") ); @@ -112,7 +112,6 @@ public final class TestCompressedRTF extends TestCase { String decompStr = new String(decomp, "ASCII"); // Test -System.err.println(decompStr); assertEquals(block1.length(), decomp.length); assertEquals(block1, decompStr); } @@ -121,7 +120,7 @@ System.err.println(decompStr); * Check that we can decode the first 16 codes * (flag + 8 codes, flag + 8 codes) */ - public void DISABLEDtestFirstTwoBlocks() throws Exception { + public void testFirstTwoBlocks() throws Exception { HMEFMessage msg = new HMEFMessage( _samples.openResourceAsStream("quick-winmail.dat") ); @@ -140,7 +139,6 @@ System.err.println(decompStr); String decompStr = new String(decomp, "ASCII"); // Test -System.err.println(decompStr); assertEquals(block2.length(), decomp.length); assertEquals(block2, decompStr); } |