From a20bb8ab092b3b6aaa3f3676f9cfe311f86f8bc5 Mon Sep 17 00:00:00 2001 From: Kharec Date: Sat, 6 Dec 2025 23:36:12 +0100 Subject: [PATCH] test: add unit test for part two --- internal/2021/DayFour/code_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/2021/DayFour/code_test.go b/internal/2021/DayFour/code_test.go index bedace9..1cc4df9 100644 --- a/internal/2021/DayFour/code_test.go +++ b/internal/2021/DayFour/code_test.go @@ -29,3 +29,11 @@ func TestPartOne(t *testing.T) { t.Errorf("PartOne() = %d, want %d", got, expected) } } + +func TestPartTwo(t *testing.T) { + expected := 1924 + got := PartTwo(testInput) + if got != expected { + t.Errorf("PartTwo() = %d, want %d", got, expected) + } +}