From 52cdc2142f3076f9f6d61e30ff528eca823d9f5b Mon Sep 17 00:00:00 2001 From: Avik Sengupta Date: Thu, 28 Apr 2005 13:44:06 +0000 Subject: [PATCH] additional tests for DBCS sheet name git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353655 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/data/DBCSSheetName.xls | Bin 0 -> 16384 bytes .../poi/hssf/usermodel/TestHSSFSheet.java | 14 ++++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 src/testcases/org/apache/poi/hssf/data/DBCSSheetName.xls diff --git a/src/testcases/org/apache/poi/hssf/data/DBCSSheetName.xls b/src/testcases/org/apache/poi/hssf/data/DBCSSheetName.xls new file mode 100644 index 0000000000000000000000000000000000000000..17aa94475e8811455c4ee35d1f38e0ea1c142ef4 GIT binary patch literal 16384 zcmeHOTWnNC82-<8x9vjdjf+a59=95Lv#FX0kxLgX1XK_~1Bo?jFH3gqmYVLC%ag0Z z8^jA3A!!tnK6n>nqKPqvnwS_9qEUI!r^V=lPm0mRn!@^h|JlP{=r$`#6`eWxXXgBK z`TzN5&YXW{&iVYay3~oc7oU{^w?@k3LfS9oIeZK8#qNEr$P&cKyO2(&$!-84YTQ+X zfWHzQS?-gM8ctVCBoXz9oE49p^iIGR`4-e8k4c5dQ13uwbTDquin~*F=(VWBDGajJ zRyoF+2cvQfezjbu+SRK+U;VcJ-(^D_m|QA@L#Iy&>~!9A;5CY2H>%vDfZChKx(m0LwZRHfB+ zHOt)gG%KU0Wo3pDxH$m5Le0Stq;yCNE)>lz*J|e$YPIu9bVvZ}5 z%X~|0HZS8`Jlh-`ekS(av4mn_$?KIzqPezHPCNs5LG zlD_mKI#(Q!DtXRFEj`u}{~AB9?!WWuTh zi9B$~k|{ifu1jO~sgyamb!Oz+ycv0}2eWjJyBo6R>D*NXe?V$9UI$;K7WGWMa_);w zeOtOh%5PPEoBB^GCz&JpCbS&$ojie*2``_5g`lT2_kQ(HaI!!S>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f/usermodel/TestHSSFSheet.java index 5383b0fbd5..9afd152786 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java @@ -396,6 +396,20 @@ public class TestHSSFSheet } + public void testDBCSName () throws Exception { + FileInputStream fis = null; + HSSFWorkbook wb = null; + + String filename = System.getProperty("HSSF.testdata.path"); + + filename = filename + "/DBCSSheetName.xls"; + fis = new FileInputStream(filename); + wb = new HSSFWorkbook(fis); + HSSFSheet s= wb.getSheetAt(1); + assertEquals ("DBCS Sheet Name 2", wb.getSheetName(1),"\u090f\u0915" ); + assertEquals("DBCS Sheet Name 1", wb.getSheetName(0),"\u091c\u093e"); + } + public static void main(java.lang.String[] args) { junit.textui.TestRunner.run(TestHSSFSheet.class); } -- 2.39.5