feat: wip on day 11 part 2

This commit is contained in:
Stevan Freeborn
2025-12-22 07:34:39 -06:00
parent f199746830
commit 3cde531610
3 changed files with 86 additions and 7 deletions
+25 -2
View File
@@ -1,6 +1,7 @@
package main_test
import (
"fmt"
"testing"
solution "github.com/StevanFreeborn/advent-of-code-2025/cmd/11"
@@ -9,10 +10,10 @@ import (
func TestSolvePartOneWithExampleInput(t *testing.T) {
expected := 5
result := solution.SolvePartOne("EXAMPLE.txt")
result := solution.SolvePartOne("EXAMPLE_ONE.txt")
if result != expected {
t.Errorf("SolvePartOne(EXAMPLE.txt) = %d; want %d", result, expected)
t.Errorf("SolvePartOne(EXAMPLE_ONE.txt) = %d; want %d", result, expected)
}
}
@@ -25,3 +26,25 @@ func TestSolvePartOneWithInput(t *testing.T) {
t.Errorf("SolvePartOne(INPUT.txt) = %d; want %d", result, expected)
}
}
func TestSolvePartTwoWithExampleInput(t *testing.T) {
expected := 2
result := solution.SolvePartTwo("EXAMPLE_TWO.txt")
if result != expected {
t.Errorf("SolvePartTwo(EXAMPLE_TWO.txt) = %d; want %d", result, expected)
}
}
func TestSolvePartTwoWithInput(t *testing.T) {
expected := -1
fmt.Println("HERE")
result := solution.SolvePartTwo("INPUT.txt")
if result != expected {
t.Errorf("SolvePartTwo(INPUT.txt) = %d; want %d", result, expected)
}
}