test: unit test for part two

This commit is contained in:
2025-12-07 21:59:04 +01:00
parent 1c5bd1e448
commit c4063b5390

View File

@@ -36,3 +36,12 @@ func TestPartOne(t *testing.T) {
})
}
}
func TestPartTwo(t *testing.T) {
input := []string{"R8", "R4", "R4", "R8"}
expected := 4
got := PartTwo(input)
if got != expected {
t.Errorf("PartTwo() = %d, want %d", got, 4)
}
}