- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/AnalysisCorrelationToPointUnitTest.cpp
r23b547 re6fdbe 17 17 #include "AnalysisCorrelationToPointUnitTest.hpp" 18 18 19 #include "World.hpp"20 19 #include "atom.hpp" 21 20 #include "boundary.hpp" … … 57 56 58 57 // construct periodentafel 59 tafel = World::getInstance().getPeriode();58 tafel = new periodentafel; 60 59 tafel->AddElement(hydrogen); 61 60 62 61 // construct molecule (tetraeder of hydrogens) 63 TestMolecule = World::getInstance().createMolecule();64 Walker = World::getInstance().createAtom();62 TestMolecule = new molecule(tafel); 63 Walker = new atom(); 65 64 Walker->type = hydrogen; 66 65 Walker->node->Init(1., 0., 1. ); 67 66 TestMolecule->AddAtom(Walker); 68 Walker = World::getInstance().createAtom();67 Walker = new atom(); 69 68 Walker->type = hydrogen; 70 69 Walker->node->Init(0., 1., 1. ); 71 70 TestMolecule->AddAtom(Walker); 72 Walker = World::getInstance().createAtom();71 Walker = new atom(); 73 72 Walker->type = hydrogen; 74 73 Walker->node->Init(1., 1., 0. ); 75 74 TestMolecule->AddAtom(Walker); 76 Walker = World::getInstance().createAtom();75 Walker = new atom(); 77 76 Walker->type = hydrogen; 78 77 Walker->node->Init(0., 0., 0. ); … … 82 81 CPPUNIT_ASSERT_EQUAL( TestMolecule->AtomCount, 4 ); 83 82 84 TestList = World::getInstance().getMolecules();83 TestList = new MoleculeListClass; 85 84 TestMolecule->ActiveFlag = true; 86 85 TestList->insert(TestMolecule); … … 103 102 delete(binmap); 104 103 104 // remove 105 delete(TestList); 106 // note that all the atoms are cleaned by TestMolecule 105 107 delete(point); 106 World::purgeInstance(); 108 delete(tafel); 109 // note that element is cleaned by periodentafel 110 World::destroy(); 107 111 MemoryUsageObserver::purgeInstance(); 108 112 logger::purgeInstance();
Note:
See TracChangeset
for help on using the changeset viewer.