Skip to content

Commit

Permalink
Make the path format to be platform-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
dota17 committed Aug 3, 2020
1 parent 9a1ac08 commit 665a3ae
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 @@ -110,7 +110,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 @@ -131,4 +131,4 @@ private void testVfsDir(Vfs.Dir dir) {
String className = mdAdapter.getClassName(stringCF);
assertFalse(className.isEmpty());
}
}
}

0 comments on commit 665a3ae

Please sign in to comment.