-
Notifications
You must be signed in to change notification settings - Fork 0
/
Day11KtTest.kt
32 lines (28 loc) · 1.11 KB
/
Day11KtTest.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
package aoc2018.day11
import aoc2019.day09.readInput
import aoc2019.day11.Day11.processInput
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import java.util.*
class Day11KtTest {
@Test
fun testReadInput() {
val list: ArrayList<Long> = readInput(INPUT1)
assertEquals(648, list.size)
}
@Test
fun testProcessInput() {
assertEquals(1951, processInput(readInput(INPUT1), 0))
assertEquals(250, processInput(readInput(INPUT1), 1))
} //
// █ █ █ █ ██ ███ ██ █ █ ██ ███
// █ █ █ █ █ █ █ █ █ █ █ █ █ █ █
// ████ ██ █ ███ █ █ ████ █ █ █
// █ █ █ █ █ █ █ ████ █ █ █ ███
// █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █
// █ █ █ █ ██ ███ █ █ █ █ ██ █ █
//
companion object {
private const val INPUT1 = "src/main/kotlin/aoc2018/day11/input1"
}
}