aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2011-05-04 03:11:28 +0000
committerNick Burch <nick@apache.org>2011-05-04 03:11:28 +0000
commit1a74a0c1146e30ca2ddecf8ef484a645289171ee (patch)
tree4cc4df4ff65f18f6783d2cdf4c6a891ba56f8c15 /src/testcases/org/apache/poi/hssf
parentbae166f687aae81044f5b4f81d0222d2937cb33d (diff)
downloadpoi-1a74a0c1146e30ca2ddecf8ef484a645289171ee.tar.gz
poi-1a74a0c1146e30ca2ddecf8ef484a645289171ee.zip
Fix bug #51143 - Correct NameCommentRecord to properly serialise strings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1099313 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf')
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
index 2dfe1a01ae..8341f465a5 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
@@ -2112,4 +2112,15 @@ if(1==2) {
c.setCellFormula("HLOOKUP(\"v A1\", A1:B2, 1, )");
assertEquals("v A1", eval.evaluate(c).getStringValue());
}
+
+ /**
+ * Mixture of Ascii and Unicode strings in a
+ * NameComment record
+ */
+ public void test51143() throws Exception {
+ HSSFWorkbook wb = openSample("51143.xls");
+ assertEquals(1, wb.getNumberOfSheets());
+ wb = writeOutAndReadBack(wb);
+ assertEquals(1, wb.getNumberOfSheets());
+ }
}