mirror of https://github.com/apache/poi.git
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
This commit is contained in:
parent
85d6f81076
commit
dfb613a059
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue