Skip to content

Commit d886319

Browse files
committed
Add org.apache.commons.io.FilenameUtilsTest.testGetFullPathNoEndSeparator_IO_771()
1 parent e156e77 commit d886319

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/test/java/org/apache/commons/io/FilenameUtilsTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.apache.commons.io.test.TestUtils;
3535
import org.apache.commons.lang3.SystemUtils;
3636
import org.junit.jupiter.api.BeforeEach;
37+
import org.junit.jupiter.api.Disabled;
3738
import org.junit.jupiter.api.Test;
3839
import org.junit.jupiter.api.io.TempDir;
3940

@@ -360,6 +361,20 @@ void testGetFullPathNoEndSeparator_IO_248() {
360361
assertEquals("\\abc", FilenameUtils.getFullPathNoEndSeparator("\\abc\\xyz"));
361362
}
362363

364+
/**
365+
* Test for https://issues.apache.org/jira/browse/IO-771
366+
*/
367+
@Test
368+
@Disabled
369+
void testGetFullPathNoEndSeparator_IO_771() {
370+
// IO-771
371+
// On macOS while in the target folder in jshell:
372+
// new java.io.File("X:\\path\\subfolder").getAbsolutePath()
373+
// ==> "/Users/garygregory/git/commons/commons-lang/target/X:\\path\\subfolder"
374+
assertEquals("/Users/garygregory/git/commons/commons-lang/target/X:\\\\path",
375+
FilenameUtils.getFullPathNoEndSeparator("/Users/garygregory/git/commons/commons-lang/target/X:\\\\path\\\\subfolder"));
376+
}
377+
363378
@Test
364379
void testGetName() {
365380
assertNull(FilenameUtils.getName(null));

0 commit comments

Comments
 (0)