feat: solve day 5 part 1

This commit is contained in:
Stevan Freeborn
2025-12-09 07:09:27 -06:00
parent 247f76026d
commit 9c221a8112
4 changed files with 118 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/05"
)
func TestSolvePartOneWithExampleInput(t *testing.T) {
expected := 3
result := solution.SolvePartOne("EXAMPLE.txt")
if result != expected {
t.Errorf("SolvePartOne with example input: expected %d, got %d", expected, result)
}
}
func TestSolvePartOneWithInput(t *testing.T) {
expected := 643
result := solution.SolvePartOne("INPUT.txt")
if result != expected {
t.Errorf("SolvePartOne with input: expected %d, got %d", expected, result)
}
}