Example #1
0
 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")
Example #2
0
 def test_part1(self):
     self.assertEqual(Day17.solve_part1(self.input), 112)
Example #3
0
 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}")