test: add unit test for part two

This commit is contained in:
2025-12-14 10:10:30 +01:00
parent 174671e6f5
commit ea1b57b17e

View File

@@ -14,3 +14,11 @@ func TestPartOne(t *testing.T) {
t.Errorf("calculateMaxDistance(testInput, 1000) = %d, want %d", got, expected) t.Errorf("calculateMaxDistance(testInput, 1000) = %d, want %d", got, expected)
} }
} }
func TestPartTwo(t *testing.T) {
expected := 689
got := calculateMaxPoints(testInput, 1000)
if got != expected {
t.Errorf("calculateMaxPoints(testInput, 1000) = %d, want %d", got, expected)
}
}