Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/ParserUnitTest.cpp

    r86cff86 rd74077  
    208208  input << Tremolo_Atomdata2;
    209209  testParser->load(&input);
    210   CPPUNIT_ASSERT(World::getInstance().getAtom(AtomByType(1))->x[0] == 3.0);
     210  CPPUNIT_ASSERT(World::getInstance().getAtom(AtomByType(1))->at(0) == 3.0);
    211211  input.clear();
    212212}
     
    219219  input << Tremolo_velocity;
    220220  testParser->load(&input);
    221   CPPUNIT_ASSERT(World::getInstance().getAtom(AtomByType(1))->v[0] == 3.0);
     221  CPPUNIT_ASSERT(World::getInstance().getAtom(AtomByType(1))->AtomicVelocity[0] == 3.0);
    222222  input.clear();
    223223}
     
    271271  // with the maximum number of fields and minimal information, default values are printed
    272272  atom* newAtom = World::getInstance().createAtom();
    273   newAtom->type = World::getInstance().getPeriode()->FindElement(1);
     273  newAtom->setType(1);
    274274  testParser->setFieldsForSave("x=3 u=3 F stress Id neighbors=5 imprData GroupMeasureTypeNo Type extType name resName chainID resSeq occupancy tempFactor segID Charge charge GrpTypeNo torsion");
    275275  testParser->save(&output);
     
    304304  atom *Walker = NULL;
    305305  Walker = World::getInstance().createAtom();
    306   Walker->type = World::getInstance().getPeriode()->FindElement(8);
    307   Walker->x = Vector(0,0,0);
     306  Walker->setType(8);
     307  Walker->setPosition(Vector(0,0,0));
    308308  Walker = World::getInstance().createAtom();
    309   Walker->type = World::getInstance().getPeriode()->FindElement(1);
    310   Walker->x = Vector(0.758602,0,0.504284);
     309  Walker->setType(1);
     310  Walker->setPosition(Vector(0.758602,0,0.504284));
    311311  Walker = World::getInstance().createAtom();
    312   Walker->type = World::getInstance().getPeriode()->FindElement(1);
    313   Walker->x = Vector(0.758602,0,-0.504284);
     312  Walker->setType(1);
     313  Walker->setPosition(Vector(0.758602,0,-0.504284));
    314314  CPPUNIT_ASSERT_EQUAL(3, World::getInstance().numAtoms());
    315315
Note: See TracChangeset for help on using the changeset viewer.