Skip to content

Commit

Permalink
make tests be cross-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
lehvolk committed Oct 9, 2023
1 parent a1cc204 commit 753445f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ val guavaLib: File

val asmLib: File
get() {
val asmUrl = classpath.first { it.contains("/asm/") }
val asmUrl = classpath.first { it.contains("${File.separator}asm${File.separator}") }
return File(asmUrl).also {
Assertions.assertTrue(it.isFile && it.exists())
}
Expand All @@ -51,7 +51,7 @@ val kotlinxCoroutines: File

val kotlinStdLib: File
get() {
val kotlinStdLib = classpath.first { it.contains("/kotlin-stdlib/") }
val kotlinStdLib = classpath.first { it.contains("${File.separator}kotlin-stdlib${File.separator}") }
return File(kotlinStdLib).also {
Assertions.assertTrue(it.isFile && it.exists())
}
Expand Down

0 comments on commit 753445f

Please sign in to comment.