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