test: add P2 unit test

This commit is contained in:
2025-12-01 12:20:11 +01:00
parent 11b6227d0e
commit b04dcc5aea

View File

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