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)
def setUp(self): self.input = Day11().read_file("tests/test_day11.txt")
def test_part2(self): self.assertEqual(Day11.solve("ghijklmn", 1), "ghjaabcc")
def test_part1(self): self.assertEqual(Day11.solve("abcdefgh", 1), "abcdffaa")