def test_part1(self): dir_path = os.path.dirname(os.path.realpath(__file__)) data = [] with open(os.path.join(dir_path, 'inputs', 'test_input'), 'r') as f: for line in f: data.append(int(line.strip())) self.assertEqual(main.Part1(data), 514579)
def test_part1(self): dir_path = os.path.dirname(os.path.realpath(__file__)) file_path = os.path.join(dir_path, 'inputs', 'test_input') self.assertEqual(main.Part1(file_path), 2)