feat: solve day 8 part 2...we in this bitch

This commit is contained in:
Stevan Freeborn
2025-12-16 21:38:37 -06:00
parent 258ec455ce
commit 723ba58850
3 changed files with 80 additions and 16 deletions
+22 -2
View File
@@ -17,7 +17,7 @@ func TestSolvePartOneWithExampleInput(t *testing.T) {
}
func TestSolvePartOneWithInput(t *testing.T) {
expected := 62186
expected := 62_186
result := solution.SolvePartOne("INPUT.txt", 1000)
@@ -37,7 +37,7 @@ func TestSolvePartOneAgainWithExampleInput(t *testing.T) {
}
func TestSolvePartOneAgainWithInput(t *testing.T) {
expected := 62186
expected := 62_186
result := solution.SolvePartOneAgain("INPUT.txt", 1000)
@@ -45,3 +45,23 @@ func TestSolvePartOneAgainWithInput(t *testing.T) {
t.Errorf("SolvePartOneAgain returned %d, expected %d", result, expected)
}
}
func TestSolvePartTwoWithExampleInput(t *testing.T) {
expected := 25_272
result := solution.SolvePartTwo("EXAMPLE.txt")
if result != expected {
t.Errorf("SolvePartTwo returned %d, expected %d", result, expected)
}
}
func TestSolvePartTwoWithInput(t *testing.T) {
expected := 8_420_405_530
result := solution.SolvePartTwo("INPUT.txt")
if result != expected {
t.Errorf("SolvePartTwo returned %d, expected %d", result, expected)
}
}