test: add unit test for part two

This commit is contained in:
2025-12-02 06:53:45 +01:00
parent 33552358f8
commit edf94432f4
2 changed files with 8 additions and 0 deletions

BIN
DayTwo.test Executable file

Binary file not shown.

View File

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