Esempio n. 1
0
 def test_part1(self):
     self.assertEqual(Day04.solve_part1(self.input),1514)
Esempio n. 2
0
 def setUp(self) -> None:
     self.input = Day04().read_file("tests/test_day04.txt")
Esempio n. 3
0
 def test_part2(self):
     inputs = []
     outputs = []
     for input, output in zip(inputs, outputs):
         self.assertEqual(Day04.solve_part2(input), output)
Esempio n. 4
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)
Esempio n. 5
0
 def test_part2(self):
     input = Day04().read_file("tests/test_day04.2.txt")
     self.assertEqual(Day04.solve_part2(input), 4)