[minor] Fix scripting classpath test on windows

This commit is contained in:
Ilya Chernikov
2019-09-27 11:55:45 +02:00
parent 6fa7da57a4
commit 4d19299e95
@@ -85,8 +85,11 @@ class ClassPathTest : TestCase() {
@Test
fun testClasspathFromClass() {
val cpFromThis = classpathFromClass(this::class)
val expectedSuffix = "classes/kotlin/test"
assertTrue("Path should end with $expectedSuffix, got: $cpFromThis", cpFromThis!!.first().path.endsWith(expectedSuffix))
val expectedSuffix = File("classes/kotlin/test").path
assertTrue(
"Path should end with $expectedSuffix, got: $cpFromThis",
cpFromThis!!.first().absoluteFile.path.endsWith(expectedSuffix)
)
}
}