test: unit test for part two
This commit is contained in:
1 parent
1c5bd1e448
commit
c4063b5390
1 file changed
+9
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user