Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/AnalysisCorrelationToPointUnitTest.cpp

    rc78d44 r920c70  
    4444  point = NULL;
    4545
    46   // construct element list
    47   std::vector<element *> elements;
     46  // construct molecule (tetraeder of hydrogens)
    4847  hydrogen = World::getInstance().getPeriode()->FindElement(1);
    4948  CPPUNIT_ASSERT(hydrogen != NULL && "hydrogen element not found");
    50   elements.push_back(hydrogen);
    51   // construct molecule (tetraeder of hydrogens)
    5249  TestMolecule = World::getInstance().createMolecule();
    5350  Walker = World::getInstance().createAtom();
     
    6966
    7067  // check that TestMolecule was correctly constructed
    71   CPPUNIT_ASSERT_EQUAL( TestMolecule->getAtomCount(), 4 );
     68  CPPUNIT_ASSERT_EQUAL( TestMolecule->AtomCount, 4 );
    7269
    7370  TestList = World::getInstance().getMolecules();
     
    7976
    8077  // init maps
    81   pointmap = CorrelationToPoint( (MoleculeListClass * const)TestList, elements, (const Vector *)point );
     78  pointmap = CorrelationToPoint( (MoleculeListClass * const)TestList, (const element * const)hydrogen, (const Vector *)point );
    8279  binmap = NULL;
    8380
Note: See TracChangeset for help on using the changeset viewer.