Ignore:
Timestamp:
Feb 26, 2010, 1:57:01 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
78b9d9, d50264
Parents:
e65cc0 (diff), 45cc89 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'FreddiesRefactoring' into StructureRefactoring

Conflicts:

molecuilder/src/Patterns/Observer.cpp
molecuilder/src/World.cpp
molecuilder/src/boundary.cpp
molecuilder/src/molecule_dynamics.cpp
molecuilder/src/unittests/AnalysisCorrelationToPointUnitTest.cpp
molecuilder/src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp
molecuilder/src/unittests/AnalysisPairCorrelationUnitTest.cpp
molecuilder/src/unittests/Makefile.am
molecuilder/src/unittests/bondgraphunittest.cpp
molecuilder/src/unittests/listofbondsunittest.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/unittests/atomsCalculationTest.cpp

    re65cc0 rdc5413  
    6363
    6464// some helper functions
    65 bool hasAll(std::vector<int> ids,int min, int max, std::set<int> excluded = std::set<int>()){
     65static bool hasAll(std::vector<int> ids,int min, int max, std::set<int> excluded = std::set<int>()){
    6666  for(int i=min;i<max;++i){
    6767    if(!excluded.count(i)){
     
    8080}
    8181
    82 bool hasNoDuplicates(std::vector<int> ids){
     82static bool hasNoDuplicates(std::vector<int> ids){
    8383  std::set<int> found;
    8484  std::vector<int>::iterator iter;
     
    9292}
    9393
    94 void operation(atom* _atom){
     94static void operation(atom* _atom){
    9595  AtomStub *atom = dynamic_cast<AtomStub*>(_atom);
    9696  assert(atom);
     
    116116  CPPUNIT_ASSERT_EQUAL((size_t)(ATOM_COUNT-1),allIds.size());
    117117}
    118 
    119 /********************************************** Main routine **************************************/
    120 
    121 int main(int argc, char **argv)
    122 {
    123   // Get the top level suite from the registry
    124   CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
    125 
    126   // Adds the test to the list of test to run
    127   CppUnit::TextUi::TestRunner runner;
    128   runner.addTest( suite );
    129 
    130   // Change the default outputter to a compiler error format outputter
    131   runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),
    132                                                        std::cerr ) );
    133   // Run the tests.
    134   bool wasSucessful = runner.run();
    135 
    136   // Return error code 1 if the one of test failed.
    137   return wasSucessful ? 0 : 1;
    138 };
Note: See TracChangeset for help on using the changeset viewer.