feat: solve day 5 part 2

This commit is contained in:
Stevan Freeborn
2025-12-10 04:56:55 -06:00
parent 36c3b8eaf3
commit b3b0b2cdba
2 changed files with 64 additions and 1 deletions
+20
View File
@@ -25,3 +25,23 @@ func TestSolvePartOneWithInput(t *testing.T) {
t.Errorf("SolvePartOne with input: expected %d, got %d", expected, result)
}
}
func TestSolvePartTwoWithExampleInput(t *testing.T) {
expected := int64(14)
result := solution.SolvePartTwo("EXAMPLE.txt")
if result != expected {
t.Errorf("SolvePartTwo with example input: expected %d, got %d", expected, result)
}
}
func TestSolvePartTwoWithInput(t *testing.T) {
expected := int64(342_018_167_474_526)
result := solution.SolvePartTwo("INPUT.txt")
if result != expected {
t.Errorf("SolvePartTwo with input: expected %d, got %d", expected, result)
}
}