def test_part1_5(self): result = day05.part1(['XXXAaAaXX']) self.assertEqual(result, 5)
def test_part1_input(self): result = day05.part1(aoc.read_input('day05.input')) self.assertEqual(result, 11152)
def test_part1_1(self): result = day05.part1(['Aa']) self.assertEqual(result, 0)
def test_part1_3(self): result = day05.part1(['AaAaXXAa']) self.assertEqual(result, 2)
def test_day05_part1(): assert day05.part1(['1002,4,3,4,33']) == None
def test_part1_example1(self): result = day05.part1(self.example) self.assertEqual(result, 10)
def test_regressions(self): self.assertEqual(5182797, part1()) self.assertEqual(12077198, part2())
def test_part1_sample(input_data): assert part1(input_data) == 861
def test_part1(): assert part1("day05/day05.dat") == 10450
def test_part1_input(self): result = day05.part1(aoc.read_input('day05.input')) self.assertEqual(4887191, result)
def test_part1(): assert part1() == 360603
def test_5_1_examples(): examples = [] for (inp, out) in examples: assert out == day05.part1(inp)
def test_part1_on_example_data(self): input = read_inputfile("example05.txt") self.assertEqual(day05.part1(input), 820)
def test_part1(self): input = ["BFFFBBFRRR", "FFFBBBFRRR", "BBFFBBFRLL"] self.assertEqual(day05.part1(input), 820)
def test_part1(): assert part1(PUZZLE_INPUT) == 994