Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>1.0-SNAPSHOT</version>

<properties>
<kotlin.version>1.2.0</kotlin.version>
<kotlin.version>1.2.31</kotlin.version>
</properties>

<dependencies>
Expand Down
45 changes: 0 additions & 45 deletions src/main/kotlin/CaptchaResolver.kt

This file was deleted.

4 changes: 2 additions & 2 deletions src/test/kotlin/BlockBalanceTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import org.junit.Assert.assertEquals
class BlockBalanceTest : Spek({
describe("A block balancer") {
on("the input of 0 2 7 0") {
it("should return 5") {
it("should return 4") {
val redistributions = BlockBalancer().findInfiniteLoop("0\t2\t7\t0")
assertEquals(5, redistributions)
assertEquals(4, redistributions)
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/test/kotlin/CaptchaResolverTest.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import day1.CaptchaResolver
import junit.framework.TestCase.assertEquals
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.describe
Expand All @@ -8,7 +9,7 @@ import org.junit.runner.RunWith

@RunWith(JUnitPlatform::class)
class CaptchaResolverTest: Spek({
describe("a CaptchaResolver") {
describe("a day1.CaptchaResolver") {
val resolver = CaptchaResolver()
on("the given input of 1111 and usage of resolver one") {
it("should return 4") {
Expand Down
4 changes: 2 additions & 2 deletions src/test/kotlin/LabyrinthEscapeTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ class LabyrinthEscapeTest : Spek({

describe("A labyrinth escaper") {
on("the given input of [(0) 3 0 1 -3]") {
it("should return 5 (steps)") {
it("should return 10 (steps)") {
val result = LabyrinthEscape().calculateSteps("0\n" +
"3\n" +
"0\n" +
"1\n" +
"-3")
assertEquals(5, result)
assertEquals(10, result)
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/test/kotlin/PassPhraseValidatorTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class PassPhraseValidatorTest : Spek({

}
}



on("the input of 'aa bb cc dd aaa \n aa bb cc dd aa'") {
it("should return 1") {
val result = PassphraseValidator().validate("aa bb cc dd aaa")
Expand Down
3 changes: 3 additions & 0 deletions src/test/kotlin/TowersTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.describe
import org.jetbrains.spek.api.dsl.it
import org.jetbrains.spek.api.dsl.on
import org.junit.platform.runner.JUnitPlatform
import org.junit.runner.RunWith
import kotlin.test.assertEquals

@RunWith(JUnitPlatform::class)
class TowersTest : Spek({

val testInput = "pbga (66)\n" +
Expand Down