Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Jobs/unittests/MPQCDataUnitTest.cpp

    r94d5ac6 r4bc75d  
    4646#include "MPQCDataUnitTest.hpp"
    4747
    48 #include "Jobs/MPQCCommandJob_MPQCData.hpp"
     48#include "Jobs/MPQCData.hpp"
    4949
    5050#include "CodePatterns/Assert.hpp"
     
    6767  data = new MPQCData;
    6868
    69   data->energy = -37.3479855;
     69  data->energies.total = -37.3479855;
    7070  std::vector<double> force;
    7171  std::vector< std::vector<double> > forces;
     
    100100
    101101  // construct closer and closer pendant
    102   otherData.energy = -37.3479855;
     102  otherData.energies.total = -37.3479855;
    103103  CPPUNIT_ASSERT( *data != otherData );
    104104  std::vector<double> force;
     
    117117
    118118  // change energy
    119   otherData.energy = -4;
     119  otherData.energies.total = -4;
    120120  CPPUNIT_ASSERT( *data != otherData );
    121   otherData.energy = -37.3479855;
     121  otherData.energies.total = -37.3479855;
    122122  CPPUNIT_ASSERT( *data == otherData );
    123123
     
    129129
    130130  // check sensibility
    131   otherData.energy -= 1e-1*std::numeric_limits<double>::epsilon();
     131  otherData.energies.total -= 1e-1*std::numeric_limits<double>::epsilon();
    132132  CPPUNIT_ASSERT( *data == otherData );
    133133  otherData.forces[1][0] -= 1e-1*std::numeric_limits<double>::epsilon();
Note: See TracChangeset for help on using the changeset viewer.