def test_part1_final(self): df = pd.read_csv('d1_test_input', header=None) flatten_list = df.values.flatten() list_df = list(flatten_list) list_df = [int(i) for i in list_df] # print(list_df) actual = chronal_calibration_part1(list_df)
def test_part1_ex3(self): actual = chronal_calibration_part1([+1, +1, -2]) expected = 0 self.assertEqual(actual, expected)
def test_part1_ex4(self): actual = chronal_calibration_part1([-1, -2, -3]) expected = -6 self.assertEqual(actual, expected)
def test_part1_ex1(self): actual = chronal_calibration_part1([+1, -2, +3, +1]) expected = 3 self.assertEqual(actual, expected)