Ignore:
Timestamp:
Feb 25, 2010, 4:43:02 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
3db67e
Parents:
2e6496
Message:

Made the world solely responsible for creating and erasing molecules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/unittests/AnalysisCorrelationToPointUnitTest.cpp

    r2e6496 r8d9d38  
    5252
    5353  // construct periodentafel
    54   tafel = new periodentafel;
     54  tafel = World::get()->getPeriode();
    5555  tafel->AddElement(hydrogen);
    5656
    5757  // construct molecule (tetraeder of hydrogens)
    58   TestMolecule = new molecule(tafel);
     58  TestMolecule = World::get()->createMolecule();
    5959  Walker = World::get()->createAtom();
    6060  Walker->type = hydrogen;
     
    7777  CPPUNIT_ASSERT_EQUAL( TestMolecule->AtomCount, 4 );
    7878
    79   TestList = new MoleculeListClass;
     79  TestList = World::get()->getMolecules();
    8080  TestMolecule->ActiveFlag = true;
    8181  TestList->insert(TestMolecule);
     
    9898    delete(binmap);
    9999
    100   // remove
    101   delete(TestList);
    102   // note that all the atoms are cleaned by TestMolecule
    103100  delete(point);
    104   delete(tafel);
    105   // note that element is cleaned by periodentafel
     101  World::destroy();
    106102};
    107103
Note: See TracChangeset for help on using the changeset viewer.