def test_part2_example1(self): result = day04.part2(self.example) self.assertEqual(result, 4455)
def test_part2_input(self): result = day04.part2(aoc.read_input('day04.input')) self.assertEqual(710, result)
def test_part2(puzzle_input, answer): assert part2(puzzle_input) == answer
def test_part2(): assert day04.part2('145852-616942') == 1192
def test_part2(c1, c2, result): assert result == part2(c1, c2)
def test_part2(): assert part2() == 186
def test_part2_sample3(sample3_data): assert part2(sample3_data) == 4
def test_part2_sample2(sample2_data): assert part2(sample2_data) == 0
def test_part2_sample(sample_data): assert part2(sample_data) == 2
def test_4_2_examples(): examples = [] for (inp, out) in examples: assert out == day04.part2(inp)
def test_part2(): assert part2("day04/day04.dat") == 49137