-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDay15Test.kt
37 lines (32 loc) · 822 Bytes
/
Day15Test.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package io.dmitrijs.aoc2017
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Nested
import kotlin.test.Test
import kotlin.test.assertEquals
@DisplayName("Day 15")
internal class Day15Test {
@Nested
@DisplayName("Puzzle 1")
inner class Puzzle1 {
@Test
fun `solves example`() {
assertEquals(588, Day15(65, 8_921).puzzle1())
}
@Test
fun `solves problem`() {
assertEquals(597, Day15(516, 190).puzzle1())
}
}
@Nested
@DisplayName("Puzzle 2")
inner class Puzzle2 {
@Test
fun `solves example`() {
assertEquals(309, Day15(65, 8_921).puzzle2())
}
@Test
fun `solves problem`() {
assertEquals(303, Day15(516, 190).puzzle2())
}
}
}