From d92e980beab53878c4b5bc4fc2de60f53dfdc4da Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Tue, 1 Apr 2014 23:27:05 +0000 Subject: [PATCH] Add another test file for bug #47251, from Joe Yuan, and a disabled test git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1583825 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/usermodel/TestBugs.java | 5 +++++ test-data/spreadsheet/47251_1.xls | Bin 0 -> 26112 bytes 2 files changed, 5 insertions(+) create mode 100644 test-data/spreadsheet/47251_1.xls diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java index 755adb6792..bc234d2a9c 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -1643,7 +1643,12 @@ public final class TestBugs extends BaseTestBugzillaIssues { @Test public void bug47251() { + // Firstly, try with one that triggers on InterfaceHdrRecord openSample("47251.xls"); + + // Now with one that triggers on NoteRecord + // TODO Fix the bug and enable this bit of the test + //openSample("47251_1.xls"); } /** diff --git a/test-data/spreadsheet/47251_1.xls b/test-data/spreadsheet/47251_1.xls new file mode 100644 index 0000000000000000000000000000000000000000..7192fed260b5f739b4fc6f0f4478306556122af1 GIT binary patch literal 26112 zcmeHPdw5*Mb)UQ1m3H;qm1Xm=k=OG3Az8MJ!Iq6A%*(+x#u!5?@d;tAu!=1?vYZ%# zi`<0%kwBW*348{pB>@@|2nlaUAee-_S|#CYO9)A5Nt&bt(!@~GJU)``?|0_T+{fNs z7Si@hTduyjd(XKu=bZV?nVB%#!4z6Q{PAf&4 z>G%13-mr1`*73gxf#1PawjWa*jhJxTvkJdSq!dy$QVmiqQXNt~QUelPKxL2`k)|Lu zAx%Y^hIAa#@kl2iorp9YX$I0sNX8T8h+;vU7;=$JFd{oH*ju* z_Zt2DEvG2``wQE2&V;%^?Nz(*Hz0Li4-|&PCUV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