def test_part1_sample(sample_data): assert part1(sample_data) == 306
def test_part1(puzzle_input, answer): assert part1(puzzle_input) == answer
def test_part1_on_example_data(self): input = read_inputfile("example22.txt") self.assertEqual(part1(input), 306)
def test_part1_input(input_data): assert part1(input_data) == 33694
def test_day22_part1(): assert day22.part1(day22_example) == 306
def test_part1_input(self): risk_level = day22.part1(aoc.read_input('day22.input')) self.assertEqual(6323, risk_level)
def test_part1_example1(self): risk_level = day22.part1(self.example_input) self.assertEqual(114, risk_level)
def test_22_1_examples(): examples = [] for (inp, out) in examples: assert out == day22.part1(inp)
def test_part1_input(self): result = day22.part1(aoc.read_input('day22.input')) self.assertEqual(6326, result)