From 665a3ae9d3d475043bb91119930f10625f00b2f8 Mon Sep 17 00:00:00 2001 From: dota17 Date: Sat, 1 Aug 2020 17:04:46 +0800 Subject: [PATCH] Make the path format to be platform-compatible --- src/test/java/org/reflections/VfsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/reflections/VfsTest.java b/src/test/java/org/reflections/VfsTest.java index 99ccf49c..12e80675 100644 --- a/src/test/java/org/reflections/VfsTest.java +++ b/src/test/java/org/reflections/VfsTest.java @@ -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(); @@ -131,4 +131,4 @@ private void testVfsDir(Vfs.Dir dir) { String className = mdAdapter.getClassName(stringCF); assertFalse(className.isEmpty()); } -} \ No newline at end of file +}