test: add unit test for p2

This commit is contained in:
2025-12-01 20:52:57 +01:00
parent 70189f4295
commit 3756279dab

View File

@@ -15,3 +15,11 @@ func TestPartOne(t *testing.T) {
t.Errorf("PartOne() = %d, want %d", got, expected)
}
}
func TestPartTwo(t *testing.T) {
expected := 1001996
got := PartTwo(testInput)
if got != expected {
t.Errorf("PartTwo() = %d, want %d", got, expected)
}
}