def test_part1_input(self): result = day04.part1(aoc.read_input('day04.input')) self.assertEqual(1099, result)
def test_part1(): assert day04.part1('145852-616942') == 1767
def test_part1_example1(self): result = day04.part1(self.example) self.assertEqual(result, 240)
def test_part1(): assert part1() == 455
def test_part1(puzzle_input, answer): assert part1(puzzle_input) == answer
def test_part1(c1, c2, result): assert result == part1(c1, c2)
def test_part1_sample(sample_data): assert part1(sample_data) == 2
def test_day04_part1(): assert day04.part1(day04_data) == 2
def test_4_1_examples(): examples = [] for (inp, out) in examples: assert out == day04.part1(inp)
def test_part1(): assert part1("day04/day04.dat") == 72925