1
0

Prepare for other years

This commit is contained in:
2020-12-30 18:01:52 +01:00
parent 522618d106
commit 4a90257257
81 changed files with 277 additions and 253 deletions
+27
View File
@@ -0,0 +1,27 @@
package be.vandewalleh.aoc.days
import be.vandewalleh.aoc.utils.input.Input
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.CsvSource
class Day13Test {
@CsvSource(
value = [
" 7,13 | 77",
" 17,x,13,19 | 3417",
" 67,7,59,61 | 754018",
" 67,x,7,59,61 | 779210",
" 67,7,x,59,61 | 1261476",
"1789,37,47,1889 | 1202161486",
],
delimiter = '|'
)
@ParameterizedTest
fun examples(buses: String, answer: Long) {
val input = Input(listOf("", buses))
assertThat(Day13(input).part2()).isEqualTo(answer)
}
}