Skip to content

Commit

Permalink
Fix compilation for kotlin dev_213
Browse files Browse the repository at this point in the history
  • Loading branch information
denlink committed Feb 1, 2016
1 parent 2c8a8ce commit ac9ac6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/swot/Compiler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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("."))
}
Expand Down
3 changes: 1 addition & 2 deletions test/swot/SwotTest.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package swot

import kotlin.test.*
import junit.framework.*
import junit.framework.TestCase

class SwotTest : TestCase() {
fun testSwot() {
Expand Down

0 comments on commit ac9ac6f

Please sign in to comment.