Changeset d74077 for src/unittests


Ignore:
Timestamp:
Jul 31, 2010, 3:23:10 PM (14 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
8f4df1
Parents:
5fbaeb
Message:

Member variable Vector and element of class atom are now private.

Location:
src/unittests
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/AnalysisCorrelationToPointUnitTest.cpp

    r5fbaeb rd74077  
    5353  TestMolecule = World::getInstance().createMolecule();
    5454  Walker = World::getInstance().createAtom();
    55   Walker->type = hydrogen;
    56   *Walker->node = Vector(1., 0., 1. );
     55  Walker->setType(hydrogen);
     56  Walker->setPosition(Vector(1., 0., 1. ));
    5757  TestMolecule->AddAtom(Walker);
    5858  Walker = World::getInstance().createAtom();
    59   Walker->type = hydrogen;
    60   *Walker->node = Vector(0., 1., 1. );
     59  Walker->setType(hydrogen);
     60  Walker->setPosition(Vector(0., 1., 1. ));
    6161  TestMolecule->AddAtom(Walker);
    6262  Walker = World::getInstance().createAtom();
    63   Walker->type = hydrogen;
    64   *Walker->node = Vector(1., 1., 0. );
     63  Walker->setType(hydrogen);
     64  Walker->setPosition(Vector(1., 1., 0. ));
    6565  TestMolecule->AddAtom(Walker);
    6666  Walker = World::getInstance().createAtom();
    67   Walker->type = hydrogen;
    68   *Walker->node = Vector(0., 0., 0. );
     67  Walker->setType(hydrogen);
     68  Walker->setPosition(Vector(0., 0., 0. ));
    6969  TestMolecule->AddAtom(Walker);
    7070
  • src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp

    r5fbaeb rd74077  
    4444  ASSERT_DO(Assert::Throw);
    4545
     46  setVerbosity(5);
     47
    4648  atom *Walker = NULL;
    4749
     
    6264
    6365  Walker = World::getInstance().createAtom();
    64   Walker->type = hydrogen;
    65   *Walker->node = Vector(1., 0., 1. );
    66   TestSurfaceMolecule->AddAtom(Walker);
    67 
    68   Walker = World::getInstance().createAtom();
    69   Walker->type = hydrogen;
    70   *Walker->node = Vector(0., 1., 1. );
    71   TestSurfaceMolecule->AddAtom(Walker);
    72 
    73   Walker = World::getInstance().createAtom();
    74   Walker->type = hydrogen;
    75   *Walker->node = Vector(1., 1., 0. );
    76   TestSurfaceMolecule->AddAtom(Walker);
    77 
    78   Walker = World::getInstance().createAtom();
    79   Walker->type = hydrogen;
    80   *Walker->node = Vector(0., 0., 0. );
     66  Walker->setType(hydrogen);
     67  Walker->setPosition(Vector(1., 0., 1. ));
     68  TestSurfaceMolecule->AddAtom(Walker);
     69
     70  Walker = World::getInstance().createAtom();
     71  Walker->setType(hydrogen);
     72  Walker->setPosition(Vector(0., 1., 1. ));
     73  TestSurfaceMolecule->AddAtom(Walker);
     74
     75  Walker = World::getInstance().createAtom();
     76  Walker->setType(hydrogen);
     77  Walker->setPosition(Vector(1., 1., 0. ));
     78  TestSurfaceMolecule->AddAtom(Walker);
     79
     80  Walker = World::getInstance().createAtom();
     81  Walker->setType(hydrogen);
     82  Walker->setPosition(Vector(0., 0., 0. ));
    8183  TestSurfaceMolecule->AddAtom(Walker);
    8284
     
    9597  TestSurfaceMolecule = World::getInstance().createMolecule();
    9698  Walker = World::getInstance().createAtom();
    97   Walker->type = carbon;
    98   *Walker->node = Vector(4., 0., 4. );
    99   TestSurfaceMolecule->AddAtom(Walker);
    100 
    101   Walker = World::getInstance().createAtom();
    102   Walker->type = carbon;
    103   *Walker->node = Vector(0., 4., 4. );
    104   TestSurfaceMolecule->AddAtom(Walker);
    105 
    106   Walker = World::getInstance().createAtom();
    107   Walker->type = carbon;
    108   *Walker->node = Vector(4., 4., 0. );
     99  Walker->setType(carbon);
     100  Walker->setPosition(Vector(4., 0., 4. ));
     101  TestSurfaceMolecule->AddAtom(Walker);
     102
     103  Walker = World::getInstance().createAtom();
     104  Walker->setType(carbon);
     105  Walker->setPosition(Vector(0., 4., 4. ));
     106  TestSurfaceMolecule->AddAtom(Walker);
     107
     108  Walker = World::getInstance().createAtom();
     109  Walker->setType(carbon);
     110  Walker->setPosition(Vector(4., 4., 0. ));
    109111  TestSurfaceMolecule->AddAtom(Walker);
    110112
    111113  // add inner atoms
    112114  Walker = World::getInstance().createAtom();
    113   Walker->type = carbon;
    114   *Walker->node = Vector(0.5, 0.5, 0.5 );
     115  Walker->setType(carbon);
     116  Walker->setPosition(Vector(0.5, 0.5, 0.5 ));
    115117  TestSurfaceMolecule->AddAtom(Walker);
    116118
  • src/unittests/AnalysisPairCorrelationUnitTest.cpp

    r5fbaeb rd74077  
    5858  TestMolecule = World::getInstance().createMolecule();
    5959  Walker = World::getInstance().createAtom();
    60   Walker->type = hydrogen;
    61   *Walker->node = Vector(1., 0., 1. );
     60  Walker->setType(hydrogen);
     61  Walker->setPosition(Vector(1., 0., 1. ));
    6262  TestMolecule->AddAtom(Walker);
    6363  Walker = World::getInstance().createAtom();
    64   Walker->type = hydrogen;
    65   *Walker->node = Vector(0., 1., 1. );
     64  Walker->setType(hydrogen);
     65  Walker->setPosition(Vector(0., 1., 1. ));
    6666  TestMolecule->AddAtom(Walker);
    6767  Walker = World::getInstance().createAtom();
    68   Walker->type = hydrogen;
    69   *Walker->node = Vector(1., 1., 0. );
     68  Walker->setType(hydrogen);
     69  Walker->setPosition(Vector(1., 1., 0. ));
    7070  TestMolecule->AddAtom(Walker);
    7171  Walker = World::getInstance().createAtom();
    72   Walker->type = hydrogen;
    73   *Walker->node = Vector(0., 0., 0. );
     72  Walker->setType(hydrogen);
     73  Walker->setPosition(Vector(0., 0., 0. ));
    7474  TestMolecule->AddAtom(Walker);
    7575
  • src/unittests/CountBondsUnitTest.cpp

    r5fbaeb rd74077  
    5454  Walker = World::getInstance().createAtom();
    5555  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    56   Walker->type = hydrogen;
    57   *Walker->node = Vector(-0.2418, 0.9350, 0. );
     56  Walker->setType(hydrogen);
     57  Walker->setPosition(Vector(-0.2418, 0.9350, 0. ));
    5858  TestMolecule1->AddAtom(Walker);
    5959  Walker = World::getInstance().createAtom();
    6060  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    61   Walker->type = hydrogen;
    62   *Walker->node = Vector(0.9658, 0., 0. );
     61  Walker->setType(hydrogen);
     62  Walker->setPosition(Vector(0.9658, 0., 0. ));
    6363  TestMolecule1->AddAtom(Walker);
    6464  Walker = World::getInstance().createAtom();
    6565  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    66   Walker->type = oxygen;
    67   *Walker->node = Vector(0., 0., 0. );
     66  Walker->setType(oxygen);
     67  Walker->setPosition(Vector(0., 0., 0. ));
    6868  TestMolecule1->AddAtom(Walker);
    6969
     
    7272  Walker = World::getInstance().createAtom();
    7373  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    74   Walker->type = hydrogen;
    75   *Walker->node = Vector(-0.2418, 0.9350, 0. );
     74  Walker->setType(hydrogen);
     75  Walker->setPosition(Vector(-0.2418, 0.9350, 0. ));
    7676  TestMolecule2->AddAtom(Walker);
    7777  Walker = World::getInstance().createAtom();
    7878  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    79   Walker->type = hydrogen;
    80   *Walker->node = Vector(0.9658, 0., 0. );
     79  Walker->setType(hydrogen);
     80  Walker->setPosition(Vector(0.9658, 0., 0. ));
    8181  TestMolecule2->AddAtom(Walker);
    8282  Walker = World::getInstance().createAtom();
    8383  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    84   Walker->type = oxygen;
    85   *Walker->node = Vector(0., 0., 0. );
     84  Walker->setType(oxygen);
     85  Walker->setPosition(Vector(0., 0., 0. ));
    8686  TestMolecule2->AddAtom(Walker);
    8787
  • src/unittests/LinkedCellUnitTest.cpp

    r5fbaeb rd74077  
    5050        Walker = World::getInstance().createAtom();
    5151        CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    52         Walker->type = hydrogen;
    53         *Walker->node = Vector(x, y, z );
     52        Walker->setType(hydrogen);
     53        Walker->setPosition(Vector(x, y, z ));
    5454        TestMolecule->AddAtom(Walker);
    5555      }
     
    192192  atom *newAtom = World::getInstance().createAtom();
    193193  newAtom->setName("test");
    194   newAtom->x= Vector(1,1,1);
     194  newAtom->setPosition(Vector(1,1,1));
    195195  CPPUNIT_ASSERT_EQUAL( false, LC->SetIndexToNode(newAtom) );
    196196  World::getInstance().destroyAtom(newAtom);
     
    199199  newAtom = World::getInstance().createAtom();
    200200  newAtom->setName("test");
    201   newAtom->x = Vector(0,-1,0);
     201  newAtom->setPosition(Vector(0,-1,0));
    202202  CPPUNIT_ASSERT_EQUAL( false, LC->SetIndexToNode(newAtom) );
    203203  World::getInstance().destroyAtom(newAtom);
     
    216216      for (double z=0.5;z<3;z+=1.) {
    217217        tester = Vector(x,y,z);
    218         CPPUNIT_ASSERT_EQUAL( true, LC->SetIndexToVector(&tester) );
     218        CPPUNIT_ASSERT_EQUAL( true, LC->SetIndexToVector(tester) );
    219219      }
    220220  // check corners of each cell
     
    224224        tester= Vector(x,y,z);
    225225        cout << "Tester is at " << tester << "." << endl;
    226         CPPUNIT_ASSERT_EQUAL( true, LC->SetIndexToVector(&tester) );
     226        CPPUNIT_ASSERT_EQUAL( true, LC->SetIndexToVector(tester) );
    227227      }
    228228  // check out of bounds
     
    232232        tester = Vector(x,y,z);
    233233        cout << "The following test is supposed to fail and produce an ERROR." << endl;
    234         CPPUNIT_ASSERT_EQUAL( false, LC->SetIndexToVector(&tester) );
     234        CPPUNIT_ASSERT_EQUAL( false, LC->SetIndexToVector(tester) );
    235235      }
    236236  // check nonsense vectors
    237237  tester= Vector(-423598,3245978,29349);
    238238  cout << "The following test is supposed to fail and produce an ERROR." << endl;
    239   CPPUNIT_ASSERT_EQUAL( false, LC->SetIndexToVector(&tester) );
     239  CPPUNIT_ASSERT_EQUAL( false, LC->SetIndexToVector(tester) );
    240240};
    241241
     
    249249
    250250  tester= Vector(0.5,0.5,0.5);
    251   LC->SetIndexToVector(&tester);
     251  LC->SetIndexToVector(tester);
    252252  LC->GetNeighbourBounds(lower, upper);
    253253  for (int i=0;i<NDIM;i++)
     
    268268  // get all atoms
    269269  tester= Vector(1.5,1.5,1.5);
    270   CPPUNIT_ASSERT_EQUAL ( true, LC->SetIndexToVector(&tester) );
     270  CPPUNIT_ASSERT_EQUAL ( true, LC->SetIndexToVector(tester) );
    271271  ListOfPoints = LC->GetallNeighbours();
    272272  size = ListOfPoints->size();
     
    285285  // get all atoms in one corner
    286286  tester= Vector(0.5, 0.5, 0.5);
    287   CPPUNIT_ASSERT_EQUAL ( true, LC->SetIndexToVector(&tester) );
     287  CPPUNIT_ASSERT_EQUAL ( true, LC->SetIndexToVector(tester) );
    288288  ListOfPoints = LC->GetallNeighbours();
    289289  size=ListOfPoints->size();
    290290  CPPUNIT_ASSERT_EQUAL( (size_t)8, size );
    291291  for(molecule::iterator iter = TestMolecule->begin(); iter != TestMolecule->end(); ++iter){
    292     if (((*iter)->x[0] <2) && ((*iter)->x[1] <2) && ((*iter)->x[2] <2)) {
     292    if (((*iter)->at(0) <2) && ((*iter)->at(1) <2) && ((*iter)->at(2) <2)) {
    293293      ListOfPoints->remove(*iter);
    294294      size--;
     
    303303  // get all atoms from one corner
    304304  tester = Vector(0.5, 0.5, 0.5);
    305   CPPUNIT_ASSERT_EQUAL ( true, LC->SetIndexToVector(&tester) );
     305  CPPUNIT_ASSERT_EQUAL ( true, LC->SetIndexToVector(tester) );
    306306  ListOfPoints = LC->GetallNeighbours(3);
    307307  size=ListOfPoints->size();
     
    329329  // get all points around central arom with radius 1.
    330330  tester= Vector(1.5,1.5,1.5);
    331   CPPUNIT_ASSERT_EQUAL ( true, LC->SetIndexToVector(&tester) );
     331  CPPUNIT_ASSERT_EQUAL ( true, LC->SetIndexToVector(tester) );
    332332  ListOfPoints = LC->GetPointsInsideSphere(1., &tester);
    333333  size = ListOfPoints->size();
    334334  CPPUNIT_ASSERT_EQUAL( (size_t)7, size );
    335335  for(molecule::iterator iter = TestMolecule->begin(); iter!=TestMolecule->end();++iter){
    336     if (((*iter)->x.DistanceSquared(tester) - 1.) < MYEPSILON ) {
     336    if (((*iter)->DistanceSquared(tester) - 1.) < MYEPSILON ) {
    337337      ListOfPoints->remove(*iter);
    338338      size--;
  • src/unittests/Makefile.am

    r5fbaeb rd74077  
    224224TesselationUnitTest_LDADD = ${ALLLIBS}
    225225
    226 Tesselation_BoundaryTriangleUnitTest_SOURCES = UnitTestMain.cpp tesselation_boundarytriangleunittest.cpp tesselation_boundarytriangleunittest.hpp
     226Tesselation_BoundaryTriangleUnitTest_SOURCES = UnitTestMain.cpp tesselation_boundarytriangleunittest.cpp tesselation_boundarytriangleunittest.hpp Stubs/TesselPoint_stub.cpp Stubs/TesselPoint_stub.hpp
    227227Tesselation_BoundaryTriangleUnitTest_LDADD = ${ALLLIBS}
    228228
    229 Tesselation_InOutsideUnitTest_SOURCES = UnitTestMain.cpp tesselation_insideoutsideunittest.cpp tesselation_insideoutsideunittest.hpp
     229Tesselation_InOutsideUnitTest_SOURCES = UnitTestMain.cpp tesselation_insideoutsideunittest.cpp tesselation_insideoutsideunittest.hpp Stubs/TesselPoint_stub.cpp Stubs/TesselPoint_stub.hpp
    230230Tesselation_InOutsideUnitTest_LDADD = ${ALLLIBS}
    231231
    232 TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
     232TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)  Stubs/TesselPoint_stub.cpp Stubs/TesselPoint_stub.hpp
    233233TestRunner_LDADD = ${ALLLIBS}
    234234
  • src/unittests/ParserUnitTest.cpp

    r5fbaeb 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
  • src/unittests/analysisbondsunittest.cpp

    r5fbaeb rd74077  
    1616#include <cstring>
    1717
    18 #include "World.hpp"
    1918#include "analysis_bonds.hpp"
    2019#include "analysisbondsunittest.hpp"
     
    2524#include "molecule.hpp"
    2625#include "periodentafel.hpp"
     26#include "vector.hpp"
    2727#include "World.hpp"
    2828
     
    5252  Walker = World::getInstance().createAtom();
    5353  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    54   Walker->type = hydrogen;
    55   *Walker->node = Vector(1.5, 0., 1.5 );
     54  Walker->setType(hydrogen);
     55  Walker->setPosition(Vector(1.5, 0., 1.5 ));
    5656  TestMolecule->AddAtom(Walker);
    5757  Walker = World::getInstance().createAtom();
    5858  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    59   Walker->type = hydrogen;
    60   *Walker->node = Vector(0., 1.5, 1.5 );
     59  Walker->setType(hydrogen);
     60  Walker->setPosition(Vector(0., 1.5, 1.5 ));
    6161  TestMolecule->AddAtom(Walker);
    6262  Walker = World::getInstance().createAtom();
    6363  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    64   Walker->type = hydrogen;
    65   *Walker->node = Vector(1.5, 1.5, 0. );
     64  Walker->setType(hydrogen);
     65  Walker->setPosition(Vector(1.5, 1.5, 0. ));
    6666  TestMolecule->AddAtom(Walker);
    6767  Walker = World::getInstance().createAtom();
    6868  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    69   Walker->type = hydrogen;
    70   *Walker->node = Vector(0., 0., 0. );
     69  Walker->setType(hydrogen);
     70  Walker->setPosition(Vector(0., 0., 0. ));
    7171  TestMolecule->AddAtom(Walker);
    7272  Walker = World::getInstance().createAtom();
    7373  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    74   Walker->type = carbon;
    75   *Walker->node = Vector(0.5, 0.5, 0.5 );
     74  Walker->setType(carbon);
     75  Walker->setPosition(Vector(0.5, 0.5, 0.5 ));
    7676  TestMolecule->AddAtom(Walker);
    7777
  • src/unittests/bondgraphunittest.cpp

    r5fbaeb rd74077  
    5454  Walker = World::getInstance().createAtom();
    5555  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    56   Walker->type = carbon;
    57   *Walker->node = Vector(1., 0., 1. );
     56  Walker->setType(carbon);
     57  Walker->setPosition(Vector(1., 0., 1. ));
    5858  TestMolecule->AddAtom(Walker);
    5959
    6060  Walker = World::getInstance().createAtom();
    6161  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    62   Walker->type = carbon;
    63   *Walker->node = Vector(0., 1., 1. );
     62  Walker->setType(carbon);
     63  Walker->setPosition(Vector(0., 1., 1. ));
    6464  TestMolecule->AddAtom(Walker);
    6565
    6666  Walker = World::getInstance().createAtom();
    6767  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    68   Walker->type = carbon;
    69   *Walker->node = Vector(1., 1., 0. );
     68  Walker->setType(carbon);
     69  Walker->setPosition(Vector(1., 1., 0. ));
    7070  TestMolecule->AddAtom(Walker);
    7171
    7272  Walker = World::getInstance().createAtom();
    7373  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    74   Walker->type = carbon;
    75   *Walker->node = Vector(0., 0., 0. );
     74  Walker->setType(carbon);
     75  Walker->setPosition(Vector(0., 0., 0. ));
    7676  TestMolecule->AddAtom(Walker);
    7777
  • src/unittests/listofbondsunittest.cpp

    r5fbaeb rd74077  
    4747  Walker = World::getInstance().createAtom();
    4848  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    49   Walker->type = hydrogen;
    50   *Walker->node = Vector(1., 0., 1. );
    51   TestMolecule->AddAtom(Walker);
    52   Walker = World::getInstance().createAtom();
    53   CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    54   Walker->type = hydrogen;
    55   *Walker->node = Vector(0., 1., 1. );
    56   TestMolecule->AddAtom(Walker);
    57   Walker = World::getInstance().createAtom();
    58   CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    59   Walker->type = hydrogen;
    60   *Walker->node = Vector(1., 1., 0. );
    61   TestMolecule->AddAtom(Walker);
    62   Walker = World::getInstance().createAtom();
    63   CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
    64   Walker->type = hydrogen;
    65   *Walker->node = Vector(0., 0., 0. );
     49  Walker->setType(hydrogen);
     50  Walker->setPosition(Vector(1., 0., 1. ));
     51  TestMolecule->AddAtom(Walker);
     52  Walker = World::getInstance().createAtom();
     53  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
     54  Walker->setType(hydrogen);
     55  Walker->setPosition(Vector(0., 1., 1. ));
     56  TestMolecule->AddAtom(Walker);
     57  Walker = World::getInstance().createAtom();
     58  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
     59  Walker->setType(hydrogen);
     60  Walker->setPosition(Vector(1., 1., 0. ));
     61  TestMolecule->AddAtom(Walker);
     62  Walker = World::getInstance().createAtom();
     63  CPPUNIT_ASSERT(Walker != NULL && "could not create atom");
     64  Walker->setType(hydrogen);
     65  Walker->setPosition(Vector(0., 0., 0. ));
    6666  TestMolecule->AddAtom(Walker);
    6767
  • src/unittests/tesselation_boundarytriangleunittest.cpp

    r5fbaeb rd74077  
    1313
    1414#include <cstring>
     15#include <iostream>
    1516
    1617#include "defs.hpp"
    17 #include "tesselation.hpp"
     18#include "TesselPoint.hpp"
     19#include "BoundaryPointSet.hpp"
     20#include "BoundaryLineSet.hpp"
     21#include "BoundaryTriangleSet.hpp"
     22#include "CandidateForTesselation.hpp"
    1823#include "tesselation_boundarytriangleunittest.hpp"
    1924
     
    3641  // create nodes
    3742  tesselpoints[0] = new TesselPoint;
    38   tesselpoints[0]->node = new Vector(0., 0., 0.);
     43  tesselpoints[0]->setPosition(Vector(0., 0., 0.));
    3944  tesselpoints[0]->setName("1");
    4045  tesselpoints[0]->nr = 1;
    4146  points[0] = new BoundaryPointSet(tesselpoints[0]);
    4247  tesselpoints[1] = new TesselPoint;
    43   tesselpoints[1]->node = new Vector(0., 1., 0.);
     48  tesselpoints[1]->setPosition(Vector(0., 1., 0.));
    4449  tesselpoints[1]->setName("2");
    4550  tesselpoints[1]->nr = 2;
    4651  points[1] = new BoundaryPointSet(tesselpoints[1]);
    4752  tesselpoints[2] = new TesselPoint;
    48   tesselpoints[2]->node = new Vector(1., 0., 0.);
     53  tesselpoints[2]->setPosition(Vector(1., 0., 0.));
    4954  tesselpoints[2]->setName("3");
    5055  tesselpoints[2]->nr = 3;
     
    6772  for (int i=0;i<3;++i) {
    6873    // TesselPoint does not delete its vector as it only got a reference
    69     delete tesselpoints[i]->node;
    7074    delete tesselpoints[i];
    7175  }
     
    8387  // simple test on y line
    8488  Point = Vector(-1.,0.5,0.);
    85   CPPUNIT_ASSERT_EQUAL( 1., triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     89  CPPUNIT_ASSERT_EQUAL( 1., triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    8690  Point = Vector(0.,0.5,0.);
    8791  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
    8892  Point = Vector(-4.,0.5,0.);
    89   CPPUNIT_ASSERT_EQUAL( 16., triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     93  CPPUNIT_ASSERT_EQUAL( 16., triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    9094  Point = Vector(0.,0.5,0.);
    9195  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
     
    9397  // simple test on x line
    9498  Point = Vector(0.5,-1.,0.);
    95   CPPUNIT_ASSERT_EQUAL( 1., triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     99  CPPUNIT_ASSERT_EQUAL( 1., triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    96100  Point = Vector(0.5,0.,0.);
    97101  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
    98102  Point = Vector(0.5,-6.,0.);
    99   CPPUNIT_ASSERT_EQUAL( 36., triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     103  CPPUNIT_ASSERT_EQUAL( 36., triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    100104  Point = Vector(0.5,0.,0.);
    101105  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
     
    103107  // simple test on slanted line
    104108  Point = Vector(1.,1.,0.);
    105   CPPUNIT_ASSERT_EQUAL( 0.5, triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     109  CPPUNIT_ASSERT_EQUAL( 0.5, triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    106110  Point = Vector(0.5,0.5,0.);
    107111  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
    108112  Point = Vector(5.,5.,0.);
    109   CPPUNIT_ASSERT_EQUAL( 40.5, triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     113  CPPUNIT_ASSERT_EQUAL( 40.5, triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    110114  Point = Vector(0.5,0.5,0.);
    111115  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
     
    113117  // simple test on first node
    114118  Point = Vector(-1.,-1.,0.);
    115   CPPUNIT_ASSERT_EQUAL( 2., triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     119  CPPUNIT_ASSERT_EQUAL( 2., triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    116120  Point = Vector(0.,0.,0.);
    117121  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
     
    119123  // simple test on second node
    120124  Point = Vector(0.,2.,0.);
    121   CPPUNIT_ASSERT_EQUAL( 1., triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     125  CPPUNIT_ASSERT_EQUAL( 1., triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    122126  Point = Vector(0.,1.,0.);
    123127  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
     
    125129  // simple test on third node
    126130  Point = Vector(2.,0.,0.);
    127   CPPUNIT_ASSERT_EQUAL( 1., triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     131  CPPUNIT_ASSERT_EQUAL( 1., triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    128132  Point = Vector(1.,0.,0.);
    129133  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
     
    139143  // straight down/up
    140144  Point = Vector(1./3.,1./3.,+5.);
    141   CPPUNIT_ASSERT_EQUAL( 25. , triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     145  CPPUNIT_ASSERT_EQUAL( 25. , triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    142146  Point = Vector(1./3.,1./3.,0.);
    143147  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
    144148  Point = Vector(1./3.,1./3.,-5.);
    145   CPPUNIT_ASSERT_EQUAL( 25. , triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     149  CPPUNIT_ASSERT_EQUAL( 25. , triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    146150  Point = Vector(1./3.,1./3.,0.);
    147151  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
     
    149153  // simple test on y line
    150154  Point = Vector(-1.,0.5,+2.);
    151   CPPUNIT_ASSERT_EQUAL( 5., triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     155  CPPUNIT_ASSERT_EQUAL( 5., triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    152156  Point = Vector(0.,0.5,0.);
    153157  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
    154158  Point = Vector(-1.,0.5,-3.);
    155   CPPUNIT_ASSERT_EQUAL( 10., triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     159  CPPUNIT_ASSERT_EQUAL( 10., triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    156160  Point = Vector(0.,0.5,0.);
    157161  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
     
    159163  // simple test on x line
    160164  Point = Vector(0.5,-1.,+1.);
    161   CPPUNIT_ASSERT_EQUAL( 2., triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     165  CPPUNIT_ASSERT_EQUAL( 2., triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    162166  Point = Vector(0.5,0.,0.);
    163167  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
    164168  Point = Vector(0.5,-1.,-2.);
    165   CPPUNIT_ASSERT_EQUAL( 5., triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     169  CPPUNIT_ASSERT_EQUAL( 5., triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    166170  Point = Vector(0.5,0.,0.);
    167171  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
     
    169173  // simple test on slanted line
    170174  Point = Vector(1.,1.,+3.);
    171   CPPUNIT_ASSERT_EQUAL( 9.5, triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     175  CPPUNIT_ASSERT_EQUAL( 9.5, triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    172176  Point = Vector(0.5,0.5,0.);
    173177  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
    174178  Point = Vector(1.,1.,-4.);
    175   CPPUNIT_ASSERT_EQUAL( 16.5, triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     179  CPPUNIT_ASSERT_EQUAL( 16.5, triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    176180  Point = Vector(0.5,0.5,0.);
    177181  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
     
    179183  // simple test on first node
    180184  Point = Vector(-1.,-1.,5.);
    181   CPPUNIT_ASSERT_EQUAL( 27., triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     185  CPPUNIT_ASSERT_EQUAL( 27., triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    182186  Point = Vector(0.,0.,0.);
    183187  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
     
    185189  // simple test on second node
    186190  Point = Vector(0.,2.,5.);
    187   CPPUNIT_ASSERT_EQUAL( 26., triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     191  CPPUNIT_ASSERT_EQUAL( 26., triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    188192  Point = Vector(0.,1.,0.);
    189193  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
     
    191195  // simple test on third node
    192196  Point = Vector(2.,0.,5.);
    193   CPPUNIT_ASSERT_EQUAL( 26., triangle->GetClosestPointInsideTriangle(&Point, &TestIntersection) );
     197  CPPUNIT_ASSERT_EQUAL( 26., triangle->GetClosestPointInsideTriangle(Point, TestIntersection) );
    194198  Point = Vector(1.,0.,0.);
    195199  CPPUNIT_ASSERT_EQUAL( true , Point == TestIntersection );
  • src/unittests/tesselation_boundarytriangleunittest.hpp

    r5fbaeb rd74077  
    1515#include "linkedcell.hpp"
    1616#include "tesselation.hpp"
     17
     18class TesselPoint;
    1719
    1820/********************************************** Test classes **************************************/
  • src/unittests/tesselation_insideoutsideunittest.cpp

    r5fbaeb rd74077  
    1313
    1414#include <cstring>
     15#include <iostream>
    1516
    1617#include "defs.hpp"
    17 #include "tesselation.hpp"
     18#include "TesselPoint.hpp"
     19#include "BoundaryLineSet.hpp"
     20#include "BoundaryTriangleSet.hpp"
     21#include "CandidateForTesselation.hpp"
    1822#include "tesselation_insideoutsideunittest.hpp"
    1923#include "verbose.hpp"
     
    3034CPPUNIT_TEST_SUITE_REGISTRATION( TesselationInOutsideTest );
    3135
    32 
    3336void TesselationInOutsideTest::setUp()
    3437{
     
    3841  class TesselPoint *Walker;
    3942  Walker = new TesselPoint;
    40   Walker->node = new Vector(0., 0., 0.);
     43  Walker->setPosition(Vector(0., 0., 0.));
    4144  Walker->setName("1");
    4245  Walker->nr = 1;
    4346  Corners.push_back(Walker);
    4447  Walker = new TesselPoint;
    45   Walker->node = new Vector(0., 1., 0.);
     48  Walker->setPosition(Vector(0., 1., 0.));
    4649  Walker->setName("2");
    4750  Walker->nr = 2;
    4851  Corners.push_back(Walker);
    4952  Walker = new TesselPoint;
    50   Walker->node = new Vector(1., 0., 0.);
     53  Walker->setPosition(Vector(1., 0., 0.));
    5154  Walker->setName("3");
    5255  Walker->nr = 3;
    5356  Corners.push_back(Walker);
    5457  Walker = new TesselPoint;
    55   Walker->node = new Vector(1., 1., 0.);
     58  Walker->setPosition(Vector(1., 1., 0.));
    5659  Walker->setName("4");
    5760  Walker->nr = 4;
    5861  Corners.push_back(Walker);
    5962  Walker = new TesselPoint;
    60   Walker->node = new Vector(0., 0., 1.);
     63  Walker->setPosition(Vector(0., 0., 1.));
    6164  Walker->setName("5");
    6265  Walker->nr = 5;
    6366  Corners.push_back(Walker);
    6467  Walker = new TesselPoint;
    65   Walker->node = new Vector(0., 1., 1.);
     68  Walker->setPosition(Vector(0., 1., 1.));
    6669  Walker->setName("6");
    6770  Walker->nr = 6;
    6871  Corners.push_back(Walker);
    6972  Walker = new TesselPoint;
    70   Walker->node = new Vector(1., 0., 1.);
     73  Walker->setPosition(Vector(1., 0., 1.));
    7174  Walker->setName("7");
    7275  Walker->nr = 7;
    7376  Corners.push_back(Walker);
    7477  Walker = new TesselPoint;
    75   Walker->node = new Vector(1., 1., 1.);
     78  Walker->setPosition(Vector(1., 1., 1.));
    7679  Walker->setName("8");
    7780  Walker->nr = 8;
     
    130133  delete(LinkedList);
    131134  delete(TesselStruct);
    132   for (LinkedCell::LinkedNodes::iterator Runner = Corners.begin(); Runner != Corners.end(); Runner++) {
    133     delete((*Runner)->node);
     135  for (LinkedCell::LinkedNodes::iterator Runner = Corners.begin(); Runner != Corners.end(); Runner++)
    134136    delete(*Runner);
    135   }
    136137  Corners.clear();
    137138  logger::purgeInstance();
  • src/unittests/tesselationunittest.cpp

    r5fbaeb rd74077  
    1616
    1717#include "defs.hpp"
    18 #include "tesselation.hpp"
     18#include "TesselPoint.hpp"
     19#include "BoundaryLineSet.hpp"
     20#include "BoundaryTriangleSet.hpp"
     21#include "CandidateForTesselation.hpp"
    1922#include "tesselationunittest.hpp"
    2023
     
    3639  class TesselPoint *Walker;
    3740  Walker = new TesselPoint;
    38   Walker->node = new Vector(1., 0., -1.);
     41  Walker->setPosition(Vector(1., 0., -1.));
    3942  Walker->setName("1");
    4043  Walker->nr = 1;
    4144  Corners.push_back(Walker);
    4245  Walker = new TesselPoint;
    43   Walker->node = new Vector(-1., 1., -1.);
     46  Walker->setPosition(Vector(-1., 1., -1.));
    4447  Walker->setName("2");
    4548  Walker->nr = 2;
    4649  Corners.push_back(Walker);
    4750  Walker = new TesselPoint;
    48   Walker->node = new Vector(-1., -1., -1.);
     51  Walker->setPosition(Vector(-1., -1., -1.));
    4952  Walker->setName("3");
    5053  Walker->nr = 3;
    5154  Corners.push_back(Walker);
    5255  Walker = new TesselPoint;
    53   Walker->node = new Vector(-1., 0., 1.);
     56  Walker->setPosition(Vector(-1., 0., 1.));
    5457  Walker->setName("4");
    5558  Walker->nr = 4;
     
    101104  delete(LinkedList);
    102105  delete(TesselStruct);
    103   for (LinkedCell::LinkedNodes::iterator Runner = Corners.begin(); Runner != Corners.end(); Runner++) {
    104     delete((*Runner)->node);
     106  for (LinkedCell::LinkedNodes::iterator Runner = Corners.begin(); Runner != Corners.end(); Runner++)
    105107    delete(*Runner);
    106   }
    107108  Corners.clear();
    108109  logger::purgeInstance();
  • src/unittests/vectorunittest.cpp

    r5fbaeb rd74077  
    5252  errorLogger::purgeInstance();
    5353};
     54
     55/** UnitTest for Constructors and Vector::IsZero() and Vector::IsOne().
     56 */
     57void VectorTest::AssignmentTest()
     58{
     59  // test with zero
     60  zero.at(0) = 0;
     61  zero.at(1) = 0;
     62  zero.at(2) = 0;
     63  double zero_array[3] = {0., 0., 0.};
     64
     65  CPPUNIT_ASSERT_EQUAL( zero, Vector(0,0,0));
     66  CPPUNIT_ASSERT_EQUAL( zero, Vector(0.,0.,0.));
     67  CPPUNIT_ASSERT_EQUAL( zero, Vector(zero_array[0], zero_array[1], zero_array[2]));
     68  CPPUNIT_ASSERT_EQUAL( zero, Vector(zero_array));
     69
     70  // test with unit
     71  unit.at(0) = 1;
     72  unit.at(1) = 0;
     73  unit.at(2) = 0;
     74  double unit_array[3] = {1., 0., 0.};
     75
     76  CPPUNIT_ASSERT_EQUAL( unit, Vector(1,0,0));
     77  CPPUNIT_ASSERT_EQUAL( unit, Vector(1.,0.,0.));
     78  CPPUNIT_ASSERT_EQUAL( unit, Vector(unit_array[0], unit_array[1], unit_array[2]));
     79  CPPUNIT_ASSERT_EQUAL( unit, Vector(unit_array));
     80
     81  // test with two
     82  two.at(0) = 2;
     83  two.at(1) = 1;
     84  two.at(2) = 0;
     85  double two_array[3] = {2., 1., 0.};
     86
     87  CPPUNIT_ASSERT_EQUAL( two, Vector(2,1,0));
     88  CPPUNIT_ASSERT_EQUAL( two, Vector(2.,1.,0.));
     89  CPPUNIT_ASSERT_EQUAL( two, Vector(two_array[0], two_array[1], two_array[2]));
     90  CPPUNIT_ASSERT_EQUAL( two, Vector(two_array));
     91
     92  // test with three
     93  three.at(0) = 1;
     94  three.at(1) = 2;
     95  three.at(2) = 3;
     96  double three_array[3] = {1., 2., 3.};
     97
     98  CPPUNIT_ASSERT_EQUAL( three, Vector(1,2,3));
     99  CPPUNIT_ASSERT_EQUAL( three, Vector(1.,2.,3.));
     100  CPPUNIT_ASSERT_EQUAL( three, Vector(three_array[0], three_array[1], three_array[2]));
     101  CPPUNIT_ASSERT_EQUAL( three, Vector(three_array));
     102}
    54103
    55104/** UnitTest for Constructors and Vector::IsZero() and Vector::IsOne().
  • src/unittests/vectorunittest.hpp

    r5fbaeb rd74077  
    1818{
    1919    CPPUNIT_TEST_SUITE( VectorTest) ;
     20    CPPUNIT_TEST ( AssignmentTest );
    2021    CPPUNIT_TEST ( UnityTest );
    2122    CPPUNIT_TEST ( SimpleAlgebraTest );
     
    3334    void tearDown();
    3435
     36    void AssignmentTest();
    3537    void UnityTest();
    3638    void OperatorAlgebraTest();
Note: See TracChangeset for help on using the changeset viewer.