def test_part2(puzzle_input, answer): assert part2(puzzle_input) == answer
def test_part2_input(input_data): assert part2(input_data) == 31835
def test_part2_sample(sample_data): assert part2(sample_data) == 291
def test_day22_part2(): assert day22.part2(day22_example) == 291
def test_part2_on_example_data(self): input = read_inputfile("example22.txt") self.assertEqual(part2(input), 291)
def test_part2_input(self): rescue_time = day22.part2(aoc.read_input('day22.input')) self.assertEqual(982, rescue_time)
def test_part2_example1(self): rescue_time = day22.part2(self.example_input) self.assertEqual(45, rescue_time)
def test_22_2_examples(): examples = [] for (inp, out) in examples: assert out == day22.part2(inp)
def test_part2(self): data = parse_22("../../22/input.txt") part2_decksize = 119315717514047 part2_times = 101741582076661 p2_answer = part2(data, part2_decksize, part2_times, 2020) self.assertEqual(p2_answer, 4893716342290)
def test_part2_input(self): result = day22.part2(aoc.read_input('day22.input')) self.assertEqual(40522432670594, result)