Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp
r2e6496 r8d9d38 56 56 57 57 // construct periodentafel 58 tafel = new periodentafel;58 tafel = World::get()->getPeriode(); 59 59 tafel->AddElement(hydrogen); 60 60 tafel->AddElement(carbon); 61 61 62 62 // construct molecule (tetraeder of hydrogens) base 63 TestMolecule = new molecule(tafel);63 TestMolecule = World::get()->createMolecule(); 64 64 Walker = World::get()->createAtom(); 65 65 Walker->type = hydrogen; … … 82 82 CPPUNIT_ASSERT_EQUAL( TestMolecule->AtomCount, 4 ); 83 83 84 TestList = new MoleculeListClass;84 TestList = World::get()->getMolecules(); 85 85 TestMolecule->ActiveFlag = true; 86 86 TestList->insert(TestMolecule); … … 127 127 delete(binmap); 128 128 129 // remove130 delete(TestList);131 129 delete(Surface); 132 130 // note that all the atoms are cleaned by TestMolecule 133 131 delete(LC); 134 delete(tafel); 135 // note that element is cleaned by periodentafel 132 World::destroy(); 136 133 }; 137 134
Note:
See TracChangeset
for help on using the changeset viewer.
