test: add unit test for part two

This commit is contained in:
2025-12-06 23:36:12 +01:00
parent c5fcc8b353
commit a20bb8ab09

View File

@@ -29,3 +29,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 := 1924
got := PartTwo(testInput)
if got != expected {
t.Errorf("PartTwo() = %d, want %d", got, expected)
}
}