def test_part2(self): self.assertEqual(Day14.solve_part2("abc"),22551)
def test_part2(self): input = Day14().read_file("tests/test_day14.2.txt") self.assertEqual(Day14.solve_part2(input),208)
def test_part1(self): self.assertEqual(Day14.solve_part1("abc"),22728)
def test_part1(self): input = Day14().read_file("tests/test_day14.1.txt") self.assertEqual(Day14.solve_part1(input),165)
def test_part1(self): self.assertEqual( Day14.solve(self.input, (Day14.compute_max_score, 1000)), 1120)
def setUp(self): self.input = Day14().read_file("tests/test_day14.txt")
def test_part2(self): self.assertEqual( Day14.solve(self.input, (Day14.compute_max_score_2, 1000)), 689)
def test_part1(self) -> None: output = 8108 actual = Day14.solve_part1(self.input) self.assertEqual( actual, output, f"input={self.input}, expected={output}, actual={actual}")