tests: add right answer

This commit is contained in:
Stevan Freeborn
2025-12-02 07:40:47 -06:00
parent 0bc711e186
commit e1bb9d8beb
+1 -7
View File
@@ -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)
} }