def test_answer_part_a(self): # noqa D102 result = day05.part_a(helpers.get_file_contents('day05.txt')) self.assertEqual(result, '11118')
def test_example_a1(self): result = day05.part_a(['ugknbfddgicrmopn']) self.assertEqual(result, '1')
def test_example_a(self, test_input, expected): # noqa D102 result = day05.part_a(test_input) self.assertEqual(result, expected)
def test_answer_part_a(self): result = day05.part_a(util.get_file_contents('day05.txt')) self.assertEqual(result, '238')
def test_example_a5(self): result = day05.part_a(['dvszwmarrgswjxmb']) self.assertEqual(result, '0')
def test_example_a4(self): result = day05.part_a(['haegwjzuvuyypxyu']) self.assertEqual(result, '0')
def test_example_a3(self): result = day05.part_a(['jchzalrnumimnmhp']) self.assertEqual(result, '0')
def test_example_a2(self): result = day05.part_a(['aaa']) self.assertEqual(result, '1')