def test_part1(self): self.assertEqual(Day17.solve_part1("ihgpwlah"), "DDRRRD") self.assertEqual(Day17.solve_part1("kglvqrro"), "DDUDRLRRUDRD") self.assertEqual(Day17.solve_part1("ulqzkmiv"), "DRURDRUDDLLDLUURRDULRLDUUDDDRR")
def test_part1(self): self.assertEqual(Day17.solve_part1(self.input), 112)
def test_part1(self) -> None: output = 638 actual = Day17.solve_part1(self.input) self.assertEqual( actual, output, f"input={self.input}, expected={output}, actual={actual}")