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/AnalysisPairCorrelationUnitTest.cpp

    r2e6496 r8d9d38  
    5151
    5252  // construct periodentafel
    53   tafel = new periodentafel;
     53  tafel = World::get()->getPeriode();
    5454  tafel->AddElement(hydrogen);
    5555
    5656  // construct molecule (tetraeder of hydrogens)
    57   TestMolecule = new molecule(tafel);
     57  TestMolecule = World::get()->createMolecule();
    5858  Walker = World::get()->createAtom();
    5959  Walker->type = hydrogen;
     
    7676  CPPUNIT_ASSERT_EQUAL( TestMolecule->AtomCount, 4 );
    7777
    78   TestList = new MoleculeListClass;
     78  TestList = World::get()->getMolecules();
    7979  TestMolecule->ActiveFlag = true;
    8080  TestList->insert(TestMolecule);
     
    9494    delete(binmap);
    9595
    96   // remove
    97   delete(TestList);
    9896  // note that all the atoms are cleaned by TestMolecule
    99   delete(tafel);
    100   // note that element is cleaned by periodentafel
     97  World::destroy();
    10198};
    10299
Note: See TracChangeset for help on using the changeset viewer.