feat: solve day 2 part 2

This commit is contained in:
Stevan Freeborn
2025-12-04 06:33:21 -06:00
parent 267bbd2d81
commit 8c17524cc6
5 changed files with 145 additions and 20 deletions
+20
View File
@@ -25,3 +25,23 @@ func TestSolvePartOneWithInput(t *testing.T) {
t.Errorf("expected %d, got %d", expected, result)
}
}
func TestSolvePartTwoWithExampleInput(t *testing.T) {
expected := int64(4_174_379_265)
result := solution.SolvePartTwo("EXAMPLE.txt")
if result != expected {
t.Errorf("expected %d, got %d", expected, result)
}
}
func TestSolvePartTwoWithInput(t *testing.T) {
expected := int64(28858486244)
result := solution.SolvePartTwo("INPUT.txt")
if result != expected {
t.Errorf("expected %d, got %d", expected, result)
}
}