tests: add right answer
This commit is contained in:
+1
-7
@@ -37,16 +37,10 @@ func TestSolvePartTwoWithExampleInput(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestSolvePartTwoWithInput(t *testing.T) {
|
func TestSolvePartTwoWithInput(t *testing.T) {
|
||||||
expected := -1
|
expected := 5937
|
||||||
tooLow := 5922
|
|
||||||
tooHigh := 5967
|
|
||||||
|
|
||||||
result := solution.SolvePartTwo("INPUT.txt")
|
result := solution.SolvePartTwo("INPUT.txt")
|
||||||
|
|
||||||
if result <= tooLow || result >= tooHigh {
|
|
||||||
t.Errorf(`SolvePartTwo("INPUT.txt") = %d; want something between %d and %d`, result, tooLow, tooHigh)
|
|
||||||
}
|
|
||||||
|
|
||||||
if result != expected {
|
if result != expected {
|
||||||
t.Errorf(`SolvePartTwo("INPUT.txt") = %d; want %d`, result, expected)
|
t.Errorf(`SolvePartTwo("INPUT.txt") = %d; want %d`, result, expected)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user