feat: solve day 2 part 1

This commit is contained in:
Stevan Freeborn
2025-12-03 07:25:24 -06:00
parent 7b841db4eb
commit 405177ef53
3 changed files with 92 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/02"
)
func TestSolvePartOneWithExampleInput(t *testing.T) {
expected := int64(1_227_775_554)
result := solution.SolvePartOne("EXAMPLE.txt")
if result != expected {
t.Errorf("expected %d, got %d", expected, result)
}
}
func TestSolvePartOneWithInput(t *testing.T) {
expected := int64(18_952_700_150)
result := solution.SolvePartOne("INPUT.txt")
if result != expected {
t.Errorf("expected %d, got %d", expected, result)
}
}