- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/AnalysisPairCorrelationUnitTest.cpp
rc78d44 r920c70 47 47 binmap = NULL; 48 48 49 // construct element list 50 std::vector<element *> elements; 49 // construct molecule (tetraeder of hydrogens) 51 50 hydrogen = World::getInstance().getPeriode()->FindElement(1); 52 CPPUNIT_ASSERT(hydrogen != NULL && "hydrogen element not found");53 elements.push_back(hydrogen);54 elements.push_back(hydrogen);55 56 // construct molecule (tetraeder of hydrogens)57 51 TestMolecule = World::getInstance().createMolecule(); 58 52 Walker = World::getInstance().createAtom(); … … 74 68 75 69 // check that TestMolecule was correctly constructed 76 CPPUNIT_ASSERT_EQUAL( TestMolecule-> getAtomCount(), 4 );70 CPPUNIT_ASSERT_EQUAL( TestMolecule->AtomCount, 4 ); 77 71 78 72 TestList = World::getInstance().getMolecules(); … … 81 75 82 76 // init maps 83 correlationmap = PairCorrelation( TestList, elements);77 correlationmap = PairCorrelation( TestList, hydrogen, hydrogen ); 84 78 binmap = NULL; 85 79
Note:
See TracChangeset
for help on using the changeset viewer.