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