Example #1
0
 def test_part2(self):
     input = [
         "101 301 501", "102 302 502", "103 303 503", "201 401 601",
         "202 402 602", "203 403 603"
     ]
     output = 6
     self.assertEqual(Day03.solve_part2(input), output)
Example #2
0
 def test_part2(self):
     inputs = ["^v", "^>v<", "^v^v^v^v^v"]
     outputs = [3, 3, 11]
     for input, output in zip(inputs, outputs):
         self.assertEqual(Day03.solve_part2(input), output)
Example #3
0
 def test_part2(self):
     self.assertEqual(Day03.solve_part2(self.input),336)