Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/AnalysisCorrelationToPointUnitTest.cpp

    rc4d4df ra5551b  
    3333
    3434  // init private all pointers to zero
     35  TestList = NULL;
    3536  TestMolecule = NULL;
    3637  hydrogen = NULL;
     
    4445  hydrogen->Z = 1;
    4546  strcpy(hydrogen->name, "hydrogen");
    46   hydrogen->symbol[0] = 'H';
     47  strcpy(hydrogen->symbol, "H");
     48
    4749
    4850  // construct periodentafel
     
    7274  CPPUNIT_ASSERT_EQUAL( TestMolecule->AtomCount, 4 );
    7375
     76  TestList = new MoleculeListClass;
     77  TestMolecule->ActiveFlag = true;
     78  TestList->insert(TestMolecule);
     79
    7480  // init point
    7581  point = new Vector(1.,1.,1.);
    7682
    7783  // init maps
    78   pointmap = CorrelationToPoint( (ofstream *)&cout, TestMolecule, hydrogen, point );
     84  pointmap = CorrelationToPoint( (ofstream *)&cout, (MoleculeListClass * const)TestList, (const element * const)hydrogen, (const Vector *)point );
    7985  binmap = NULL;
    8086
     
    9096
    9197  // remove
    92   delete(TestMolecule);
     98  delete(TestList);
    9399  // note that all the atoms are cleaned by TestMolecule
    94100  delete(point);
Note: See TracChangeset for help on using the changeset viewer.