Changeset 8d9d38 for molecuilder/src/unittests/bondgraphunittest.cpp
- Timestamp:
- Feb 25, 2010, 4:43:02 PM (16 years ago)
- Children:
- 3db67e
- Parents:
- 2e6496
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/bondgraphunittest.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 tafel->AddElement(carbon); 57 57 58 58 // construct molecule (tetraeder of hydrogens) 59 TestMolecule = new molecule(tafel);59 TestMolecule = World::get()->createMolecule(); 60 60 Walker = World::get()->createAtom(); 61 61 Walker->type = hydrogen; … … 97 97 98 98 // remove molecule 99 delete(TestMolecule);99 World::get()->destroyMolecule(TestMolecule); 100 100 // note that all the atoms are cleaned by TestMolecule 101 delete(tafel); 102 // note that element is cleaned by periodentafel 101 World::destroy(); 103 102 }; 104 103
Note:
See TracChangeset
for help on using the changeset viewer.