feat: solve day 4 part 2

This commit is contained in:
Stevan Freeborn
2025-12-08 05:39:47 -06:00
parent 801b492e59
commit 0b74bfd821
4 changed files with 89 additions and 1 deletions
+20
View File
@@ -25,3 +25,23 @@ func TestSolvePartOneWithInput(t *testing.T) {
t.Errorf("got %d but wanted %d", result, expected)
}
}
func TestSolvePartTwoWithExampleInput(t *testing.T) {
expected := 43
result := solution.SolvePartTwo("EXAMPLE.txt")
if result != expected {
t.Errorf("got %d but wanted %d", result, expected)
}
}
func TestSolvePartTwoWithInput(t *testing.T) {
expected := 8451
result := solution.SolvePartTwo("INPUT.txt")
if result != expected {
t.Errorf("got %d but wanted %d", result, expected)
}
}