def test_example_b(self, test_input, expected): # noqa D102 result = day05.part_b(test_input) self.assertEqual(result, expected)
def test_answer_part_b(self): # noqa D102 result = day05.part_b(helpers.get_file_contents('day05.txt')) self.assertEqual(result, '6948')
def test_answer_part_b(self): result = day05.part_b(util.get_file_contents('day05.txt')) self.assertEqual(result, '69')
def test_example_b4(self): result = day05.part_b(['ieodomkazucvgmuy']) self.assertEqual(result, '0')
def test_example_b3(self): result = day05.part_b(['uurcxstgmygtbstg']) self.assertEqual(result, '0')
def test_example_b2(self): result = day05.part_b(['xxyxx']) self.assertEqual(result, '1')
def test_example_b1(self): result = day05.part_b(['qjhvhtzxzqqjkmpb']) self.assertEqual(result, '1')