From ea1b57b17e76d494ba402871c6d1eb94db819d76 Mon Sep 17 00:00:00 2001 From: Kharec Date: Sun, 14 Dec 2025 10:10:30 +0100 Subject: [PATCH] test: add unit test for part two --- internal/2015/DayFourteen/code_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/2015/DayFourteen/code_test.go b/internal/2015/DayFourteen/code_test.go index 6ffc30a..3e79825 100644 --- a/internal/2015/DayFourteen/code_test.go +++ b/internal/2015/DayFourteen/code_test.go @@ -14,3 +14,11 @@ func TestPartOne(t *testing.T) { 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) + } +}