def test_part1(self): inputs = [1, 12, 23, 1024] outputs = [0, 3, 2, 31] for input, output in zip(inputs, outputs): self.assertEqual(Day03.solve_part1(input), output)
def test_part1(self): inputs = [">", "^>v<", "^v^v^v^v^v"] outputs = [2, 4, 2] for input, output in zip(inputs, outputs): self.assertEqual(Day03.solve_part1(input), output)
def test_part1(self): input = ["5 10 25"] output = 0 self.assertEqual(Day03.solve_part1(input), output)
def test_part1(self): self.assertEqual(Day03.solve_part1(self.input),7)