From b04dcc5aeaae563c87b231bea5b6ff91c30013cc Mon Sep 17 00:00:00 2001 From: Kharec Date: Mon, 1 Dec 2025 12:20:11 +0100 Subject: [PATCH] test: add P2 unit test --- internal/2022/DayTwo/code_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/2022/DayTwo/code_test.go b/internal/2022/DayTwo/code_test.go index 6c11704..c2c09a2 100644 --- a/internal/2022/DayTwo/code_test.go +++ b/internal/2022/DayTwo/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 := 12 + got := PartTwo(testInput) + if got != expected { + t.Errorf("PartTwo() = %d, want %d", got, expected) + } +}