File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,21 @@ class MathzoneAdd1Test : public testing::Test
3333 const int MaxInt = 100 ;
3434 int nr_in = 17 ;
3535 int nr_out = 161 ;
36- double *r_in = new double [nr_in];
37- double *r_out = new double [nr_out];
38- double *y2 = new double [nr_in];
39- double *psi_in = new double [nr_in];
40- double *psi_out = new double [nr_out];
41- double *dpsi = new double [nr_out];
36+ double *r_in;
37+ double *r_out;
38+ double *y2;
39+ double *psi_in;
40+ double *psi_out;
41+ double *dpsi;
42+ void SetUp ()
43+ {
44+ r_in = new double [nr_in];
45+ r_out = new double [nr_out];
46+ y2 = new double [nr_in];
47+ psi_in = new double [nr_in];
48+ psi_out = new double [nr_out];
49+ dpsi = new double [nr_out];
50+ }
4251 void TearDown ()
4352 {
4453 delete[] r_in;
You can’t perform that action at this time.
0 commit comments