feat: solve part seven day two

This commit is contained in:
Stevan Freeborn
2025-12-14 07:21:58 -06:00
parent b7d78c09fe
commit 9eda236cf8
2 changed files with 97 additions and 0 deletions
+20
View File
@@ -25,3 +25,23 @@ func TestSolvePartOneWithInput(t *testing.T) {
t.Errorf("SolvePartOne() = %d; want %d", result, expected)
}
}
func TestSolvePartTwoWithExampleInput(t *testing.T) {
expected := 40
result := solution.SolvePartTwo("EXAMPLE.txt")
if result != expected {
t.Errorf("SolveTwoOne() = %d; want %d", result, expected)
}
}
func TestSolvePartTwoWithInput(t *testing.T) {
expected := 73_007_003_089_792
result := solution.SolvePartTwo("INPUT.txt")
if result != expected {
t.Errorf("SolveTwoOne() = %d; want %d", result, expected)
}
}