From dfb613a0594265f8298e12834ae2dbfc725138be Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Mon, 31 Dec 2018 09:05:05 +0000 Subject: [PATCH] Adjust test for bug 60460 to also run fine on Windows 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 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java index 333704fd82..32ec25bcf5 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -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()); -- 2.39.5