test: add P1 unit test

This commit is contained in:
2025-12-01 12:18:54 +01:00
parent 728bbb2a06
commit 31660c7510

View File

@@ -0,0 +1,17 @@
package daytwo
import "testing"
var testInput = []string{
"A Y",
"B X",
"C Z",
}
func TestPartOne(t *testing.T) {
expected := 15
got := PartOne(testInput)
if got != expected {
t.Errorf("PartOne() = %d, want %d", got, expected)
}
}