def test_answer_part_b(self): result = day03.part_b(util.get_file_contents('day03.txt')) self.assertEqual(result, '2631')
def test_example_b3(self): result = day03.part_b(['^v^v^v^v^v']) self.assertEqual(result, '11')
def test_answer_part_b(self): # noqa D102 result = day03.part_b(helpers.get_file_contents('day03.txt')) self.assertEqual(result, '331')
def test_example_b2(self): result = day03.part_b(['^>v<']) self.assertEqual(result, '3')
def test_example_b(self, test_input, expected): # noqa D102 result = day03.part_b(test_input) self.assertEqual(result, expected)