Skip to content

Commit

Permalink
Make the path format to be platform-compatible (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
dota17 committed Oct 6, 2021
1 parent 884b741 commit 9f6d223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/reflections/VfsTest.java
Expand Up @@ -107,7 +107,7 @@ public void vfsFromDirWithJarInName() throws MalformedURLException {
try {
Vfs.Dir dir = Vfs.fromURL(new URL(format("file:{0}", dirWithJarInName)));

assertEquals(dirWithJarInName, dir.getPath());
assertEquals(dirWithJarInName.replace("\\", "/"), dir.getPath());
assertEquals(SystemDir.class, dir.getClass());
} finally {
newDir.delete();
Expand All @@ -121,4 +121,4 @@ private void testVfsDir(Vfs.Dir dir) {
}
assertFalse(files.isEmpty());
}
}
}

0 comments on commit 9f6d223

Please sign in to comment.