From c61e573e1451bb7c5faa118450565705be2603ff Mon Sep 17 00:00:00 2001 From: Kharec Date: Tue, 2 Dec 2025 21:57:27 +0100 Subject: [PATCH] test: add unit test for part two --- internal/2015/DayNine/code_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/2015/DayNine/code_test.go b/internal/2015/DayNine/code_test.go index e03af19..cc6aa8c 100644 --- a/internal/2015/DayNine/code_test.go +++ b/internal/2015/DayNine/code_test.go @@ -15,3 +15,11 @@ func TestPartOne(t *testing.T) { t.Errorf("PartOne() = %d, want %d", got, expected) } } + +func TestPartTwo(t *testing.T) { + expected := 982 + got := PartTwo(testInput) + if got != expected { + t.Errorf("PartTwo() = %d, want %d", got, expected) + } +}