feat: solve day 11 part 1

This commit is contained in:
Stevan Freeborn
2025-12-21 05:39:28 -06:00
parent 5b72f2673e
commit 507b33f0ee
3 changed files with 71 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
package main_test
import (
"testing"
solution "github.com/StevanFreeborn/advent-of-code-2025/cmd/11"
)
func TestSolvePartOneWithExampleInput(t *testing.T) {
expected := 5
result := solution.SolvePartOne("EXAMPLE.txt")
if result != expected {
t.Errorf("SolvePartOne(EXAMPLE.txt) = %d; want %d", result, expected)
}
}
func TestSolvePartOneWithInput(t *testing.T) {
expected := 599
result := solution.SolvePartOne("INPUT.txt")
if result != expected {
t.Errorf("SolvePartOne(INPUT.txt) = %d; want %d", result, expected)
}
}