feat: solve day 10 part one

This commit is contained in:
Stevan Freeborn
2025-12-20 07:03:12 -06:00
parent 2ce0712fed
commit 4d7c6fb569
3 changed files with 69 additions and 6 deletions
+12 -2
View File
@@ -6,8 +6,8 @@ import (
solution "github.com/StevanFreeborn/advent-of-code-2025/cmd/10"
)
func TestSolvePartOne(t *testing.T) {
expected := -1
func TestSolvePartOneWithExampleInput(t *testing.T) {
expected := 7
result := solution.SolvePartOne("EXAMPLE.txt")
@@ -15,3 +15,13 @@ func TestSolvePartOne(t *testing.T) {
t.Errorf("got %d but wanted %d", result, expected)
}
}
func TestSolvePartOneWithInput(t *testing.T) {
expected := -1
result := solution.SolvePartOne("INPUT.txt")
if result != expected {
t.Errorf("got %d but wanted %d", result, expected)
}
}