test: add unit test for p2

This commit is contained in:
2025-12-01 07:35:03 +01:00
parent d66cd1179d
commit daec5a8671

View File

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