Пример #1
0
 def test_part1(self):
     inputs = ["abcdef", "pqrstuv"]
     outputs = [609043, 1048970]
     for input, output in zip(inputs, outputs):
         self.assertEqual(Day04.solve_part1(input), output)
Пример #2
0
 def test_part1(self):
     self.assertEqual(Day04.solve_part1(self.input),1514)
Пример #3
0
 def test_part1(self):
     input = Day04().read_file("tests/test_day04.1.txt")
     self.assertEqual(Day04.solve_part1(input), 2)