Fix compilation for kotlin dev_213

This commit is contained in:
denis.linkov 2016-02-01 10:21:28 +03:00
parent 2c8a8cee37
commit ac9ac6f357
2 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,7 @@ fun main(args: Array<String>) {
val root = File("lib/domains")
root.walkTopDown().forEach {
if (it.isFile) {
val parts = it.relativeTo(root).replace('\\', '/').removeSuffix(".txt").split('/').toList()
val parts = it.toRelativeString(root).replace('\\', '/').removeSuffix(".txt").split('/').toList()
if (!checkSet(CompilationState.blacklist, parts) && !checkSet(CompilationState.domains, parts)) {
CompilationState.domains.add(parts.reversed().joinToString("."))
}

View File

@ -1,7 +1,6 @@
package swot
import kotlin.test.*
import junit.framework.*
import junit.framework.TestCase
class SwotTest : TestCase() {
fun testSwot() {