File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
main/kotlin/de/ronny_h/aoc/year2017/day19
test/kotlin/de/ronny_h/aoc/year2017/day19 Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ import de.ronny_h.aoc.extensions.grids.Direction
66import de.ronny_h.aoc.extensions.grids.Direction.*
77import de.ronny_h.aoc.extensions.grids.SimpleCharGrid
88
9- fun main () = ParticleSwarm ().run (" EOCZQMURF" , " 16312" )
9+ fun main () = ASeriesOfTubes ().run (" EOCZQMURF" , " 16312" )
1010
11- class ParticleSwarm : AdventOfCode <String >(2017 , 19 ) {
11+ class ASeriesOfTubes : AdventOfCode <String >(2017 , 19 ) {
1212 override fun part1 (input : List <String >): String = RoutingDiagram (input).followThePath().letters
1313
1414 override fun part2 (input : List <String >): String = RoutingDiagram (input).followThePath().length.toString()
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import de.ronny_h.aoc.extensions.grids.Coordinates
55import io.kotest.core.spec.style.StringSpec
66import io.kotest.matchers.shouldBe
77
8- class ParticleSwarmTest : StringSpec ({
8+ class ASeriesOfTubesTest : StringSpec ({
99
1010 val input = """
1111 # |
@@ -21,10 +21,10 @@ class ParticleSwarmTest : StringSpec({
2121 }
2222
2323 " part 1: the letters on the path from the beginning to the end" {
24- ParticleSwarm ().part1(input) shouldBe " ABCDEF"
24+ ASeriesOfTubes ().part1(input) shouldBe " ABCDEF"
2525 }
2626
2727 " part 2: the package takes a total of 38 steps" {
28- ParticleSwarm ().part2(input) shouldBe " 38"
28+ ASeriesOfTubes ().part2(input) shouldBe " 38"
2929 }
3030})
You can’t perform that action at this time.
0 commit comments