test: add unit test for part two
This commit is contained in:
1 parent
b9e5e29edc
commit
2a36b7c21f
1 file changed
+8
@@ -14,3 +14,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 := 57600000
|
||||||
|
got := PartTwo(testInput)
|
||||||
|
if got != expected {
|
||||||
|
t.Errorf("PartTwo() = %d, want %d", got, expected)
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user