- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/AnalysisCorrelationToPointUnitTest.cpp
rc4d4df ra5551b 33 33 34 34 // init private all pointers to zero 35 TestList = NULL; 35 36 TestMolecule = NULL; 36 37 hydrogen = NULL; … … 44 45 hydrogen->Z = 1; 45 46 strcpy(hydrogen->name, "hydrogen"); 46 hydrogen->symbol[0] = 'H'; 47 strcpy(hydrogen->symbol, "H"); 48 47 49 48 50 // construct periodentafel … … 72 74 CPPUNIT_ASSERT_EQUAL( TestMolecule->AtomCount, 4 ); 73 75 76 TestList = new MoleculeListClass; 77 TestMolecule->ActiveFlag = true; 78 TestList->insert(TestMolecule); 79 74 80 // init point 75 81 point = new Vector(1.,1.,1.); 76 82 77 83 // init maps 78 pointmap = CorrelationToPoint( (ofstream *)&cout, TestMolecule, hydrogen,point );84 pointmap = CorrelationToPoint( (ofstream *)&cout, (MoleculeListClass * const)TestList, (const element * const)hydrogen, (const Vector *)point ); 79 85 binmap = NULL; 80 86 … … 90 96 91 97 // remove 92 delete(Test Molecule);98 delete(TestList); 93 99 // note that all the atoms are cleaned by TestMolecule 94 100 delete(point);
Note:
See TracChangeset
for help on using the changeset viewer.