From 62748990cba99f3047a04d4a8b2a4d3de62e61c6 Mon Sep 17 00:00:00 2001 From: Kharec Date: Mon, 8 Dec 2025 21:55:29 +0100 Subject: [PATCH] test: unit test for part two --- internal/2022/DayThree/code_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/2022/DayThree/code_test.go b/internal/2022/DayThree/code_test.go index c591b3a..b2203ad 100644 --- a/internal/2022/DayThree/code_test.go +++ b/internal/2022/DayThree/code_test.go @@ -18,3 +18,11 @@ func TestPartOne(t *testing.T) { t.Errorf("PartOne() = %d, want %d", got, expected) } } + +func TestPartTwo(t *testing.T) { + expected := 70 + got := PartTwo(testInput) + if got != expected { + t.Errorf("PartTwo() = %d, want %d", got, expected) + } +}