- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/ActOnAllUnitTest.cpp
r920c70 r1bd79e 46 46 // Ref was copy constructed, hence has to be cleaned, too! 47 47 Ref.EmptyList(); 48 MemoryUsageObserver::purgeInstance(); 48 49 }; 49 50 … … 76 77 77 78 // scaling by three values 78 double *factors = new double[NDIM];79 double *inverses = new double[NDIM];79 double *factors = Malloc<double>(NDIM, "ActOnAllTest::ScaleTest - factors"); 80 double *inverses = Malloc<double>(NDIM, "ActOnAllTest::ScaleTest - inverses"); 80 81 for (int i=0;i<NDIM;++i) { 81 82 factors[i] = 2.; … … 87 88 VL.ActOnAll<Vector,void,const double*>(&Vector::ScaleAll, inverses ); 88 89 CPPUNIT_ASSERT_EQUAL( VL == Ref , true ); 89 delete[](factors);90 delete[](inverses);90 Free(factors); 91 Free(inverses); 91 92 }; 92 93
Note:
See TracChangeset
for help on using the changeset viewer.