diff --git a/compiler/tests/org/jetbrains/kotlin/code/CodeConformanceTest.kt b/compiler/tests/org/jetbrains/kotlin/code/CodeConformanceTest.kt index 418838f6248..9d0dfc26d98 100644 --- a/compiler/tests/org/jetbrains/kotlin/code/CodeConformanceTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/code/CodeConformanceTest.kt @@ -260,12 +260,11 @@ class CodeConformanceTest : TestCase() { private class FileMatcher(val root: File, paths: Collection) { private val files = paths.map { File(it) } - private val names = files.mapTo(HashSet()) { it.name } private val paths = files.mapTo(HashSet()) { it.systemIndependentPath } private val relativePaths = files.filterTo(ArrayList()) { it.isDirectory }.mapTo(HashSet()) { it.systemIndependentPath + "/" } fun matchExact(file: File): Boolean { - return (file.name in names) && file.relativeTo(root).systemIndependentPath in paths + return file.relativeTo(root).systemIndependentPath in paths } fun matchWithContains(file: File): Boolean {