Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/AnalysisCorrelationToPointUnitTest.cpp
r2e6496 r8d9d38 52 52 53 53 // construct periodentafel 54 tafel = new periodentafel;54 tafel = World::get()->getPeriode(); 55 55 tafel->AddElement(hydrogen); 56 56 57 57 // construct molecule (tetraeder of hydrogens) 58 TestMolecule = new molecule(tafel);58 TestMolecule = World::get()->createMolecule(); 59 59 Walker = World::get()->createAtom(); 60 60 Walker->type = hydrogen; … … 77 77 CPPUNIT_ASSERT_EQUAL( TestMolecule->AtomCount, 4 ); 78 78 79 TestList = new MoleculeListClass;79 TestList = World::get()->getMolecules(); 80 80 TestMolecule->ActiveFlag = true; 81 81 TestList->insert(TestMolecule); … … 98 98 delete(binmap); 99 99 100 // remove101 delete(TestList);102 // note that all the atoms are cleaned by TestMolecule103 100 delete(point); 104 delete(tafel); 105 // note that element is cleaned by periodentafel 101 World::destroy(); 106 102 }; 107 103
Note:
See TracChangeset
for help on using the changeset viewer.
