]> source.dussan.org Git - poi.git/commitdiff
Adjust test for bug 60460 to also run fine on Windows
authorDominik Stadler <centic@apache.org>
Mon, 31 Dec 2018 09:05:05 +0000 (09:05 +0000)
committerDominik Stadler <centic@apache.org>
Mon, 31 Dec 2018 09:05:05 +0000 (09:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1850022 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java

index 333704fd826496ff3f340f735e18226e911af220..32ec25bcf59840a83c4076b16dba78953c0ee73a 100644 (file)
@@ -2446,10 +2446,6 @@ public final class TestBugs extends BaseTestBugzillaIssues {
         wb.close();
     }
 
-    /**
-     * Note - part of this test is still failing, see
-     * {@link TestUnfixedBugs#test49612()}
-     */
     @Test
     public void bug49612_part() throws IOException {
         HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("49612.xls");
@@ -3144,7 +3140,9 @@ public final class TestBugs extends BaseTestBugzillaIssues {
 
         Name rangedName = wb.getAllNames().get(0);
         assertFalse(rangedName.isFunctionName());
-        assertEquals("'[\\\\HEPPC3/gt$/Teaching/Syn/physyn.xls]#REF'!$AK$70:$AL$70", rangedName.getRefersToFormula());
+        assertEquals("'[\\\\HEPPC3\\gt$\\Teaching\\Syn\\physyn.xls]#REF'!$AK$70:$AL$70",
+                // replace '/' to make test work equally on Windows and Linux
+                rangedName.getRefersToFormula().replace("/", "\\"));
 
         rangedName = wb.getAllNames().get(1);
         assertFalse(rangedName.isFunctionName());