Skip to content

Commit 21a4d35

Browse files
committed
Solution 2017-19 (A Series of Tubes), fix the class name
"Particle Swarm" already was day 20's name.
1 parent d6cd72a commit 21a4d35

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/kotlin/de/ronny_h/aoc/year2017/day19/ParticleSwarm.kt renamed to src/main/kotlin/de/ronny_h/aoc/year2017/day19/ASeriesOfTubes.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import de.ronny_h.aoc.extensions.grids.Direction
66
import de.ronny_h.aoc.extensions.grids.Direction.*
77
import 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()

src/test/kotlin/de/ronny_h/aoc/year2017/day19/ParticleSwarmTest.kt renamed to src/test/kotlin/de/ronny_h/aoc/year2017/day19/ASeriesOfTubesTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import de.ronny_h.aoc.extensions.grids.Coordinates
55
import io.kotest.core.spec.style.StringSpec
66
import 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
})

0 commit comments

Comments
 (0)