def test_day5_part1(self): file_data = parse("../../05/input.txt") got = solve1(file_data, [1]) want = [0, 0, 0, 0, 0, 0, 0, 0, 0, 5821753] self.assertEqual(want, got)
def test_day5_part2(self): file_data = parse("../../05/input.txt") got = solve1(file_data, [5]) want = [11956381] self.assertEqual(want, got)
def test_part1(self): file_data = parse("../../07/input.txt") [max_val, max_seq] = amplify_once_find_max_seq(file_data) self.assertEqual(max_val, 13848)
def test_part2(self): file_data = parse("../../07/input.txt") [max_val, max_seq] = amplify_loop_max_seq(file_data) self.assertEqual(max_val, 12932154)
def test_part1(self): file_data = parse("../../09/input.txt") outputs = solve1(file_data, [1]) self.assertEqual(outputs, [3780860499])
def test_part2(self): file_data = parse("../../09/input.txt") outputs = solve1(file_data, [2]) self.assertEqual(outputs, [33343])
def test_part2(self): program = parse("../../11/input.txt") got = PainterRobot.part1(program, initial_color=1) self.assertEqual(got, 249)
def test_part1(self): program = parse("../../11/input.txt") got = PainterRobot.part1(program) self.assertEqual(got, 2539)
def test_part2(self): program = parse("../../13/input.txt") got = Breakout.part1(program) self.assertEqual(got, 270)
def test_part1_and2(self): program = parse("../../15/input.txt") p1, p2 = Day15.part1_and_2(program) self.assertEqual(p1, 226) self.assertEqual(p2, 342)
def test_pass(self): data = puzzle.parse(read_file("15", "1")) result = puzzle.solve(data) print(f"Solution: {result}") self.assertEqual(True, True)