[minor] Fix scripting classpath test on windows
This commit is contained in:
+5
-2
@@ -85,8 +85,11 @@ class ClassPathTest : TestCase() {
|
|||||||
@Test
|
@Test
|
||||||
fun testClasspathFromClass() {
|
fun testClasspathFromClass() {
|
||||||
val cpFromThis = classpathFromClass(this::class)
|
val cpFromThis = classpathFromClass(this::class)
|
||||||
val expectedSuffix = "classes/kotlin/test"
|
val expectedSuffix = File("classes/kotlin/test").path
|
||||||
assertTrue("Path should end with $expectedSuffix, got: $cpFromThis", cpFromThis!!.first().path.endsWith(expectedSuffix))
|
assertTrue(
|
||||||
|
"Path should end with $expectedSuffix, got: $cpFromThis",
|
||||||
|
cpFromThis!!.first().absoluteFile.path.endsWith(expectedSuffix)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user