Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/AnalysisPairCorrelationUnitTest.cpp

    rc78d44 r920c70  
    4747  binmap = NULL;
    4848
    49   // construct element list
    50   std::vector<element *> elements;
     49  // construct molecule (tetraeder of hydrogens)
    5150  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)
    5751  TestMolecule = World::getInstance().createMolecule();
    5852  Walker = World::getInstance().createAtom();
     
    7468
    7569  // check that TestMolecule was correctly constructed
    76   CPPUNIT_ASSERT_EQUAL( TestMolecule->getAtomCount(), 4 );
     70  CPPUNIT_ASSERT_EQUAL( TestMolecule->AtomCount, 4 );
    7771
    7872  TestList = World::getInstance().getMolecules();
     
    8175
    8276  // init maps
    83   correlationmap = PairCorrelation( TestList, elements);
     77  correlationmap = PairCorrelation( TestList, hydrogen, hydrogen );
    8478  binmap = NULL;
    8579
Note: See TracChangeset for help on using the changeset viewer.