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