def test_part1(self): inputs = ["ne,ne,ne", "ne,ne,sw,sw", "ne,ne,s,s", "se,sw,se,sw,sw"] outputs = [3, 0, 2, 3] for input, output in zip(inputs, outputs): actual = Day11.solve_part1(input) self.assertEqual( actual, output, f"input={input}, expected={output}, actual={actual}")
def test_part1(self): self.assertEqual(Day11.solve_part1(self.input), 37)