test: add unit test for part two

This commit is contained in:
2025-12-05 08:46:10 +01:00
parent d96febeae3
commit 51f733127c

View File

@@ -23,3 +23,11 @@ func TestPartOne(t *testing.T) {
t.Errorf("PartOne() = %d, want %d", got, expected) t.Errorf("PartOne() = %d, want %d", got, expected)
} }
} }
func TestPartTwo(t *testing.T) {
expected := 14
got := PartTwo(testInput)
if got != expected {
t.Errorf("PartTwo() = %d, want %d", got, expected)
}
}