ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
Functions
RunTests.cpp File Reference

The unit test program, executes unit tests. More...

#include "RunTests.h"

Go to the source code of this file.

Functions

int main ()
 Main function in this short program.
void addTests ()
 Called by main() to prepare the test cases.

Detailed Description

The unit test program, executes unit tests.

Author:
Rikard Lundmark

Definition in file RunTests.cpp.


Function Documentation

int main ( )

Main function in this short program.

The main test function and program entry point.

Main function.

Definition at line 4 of file RunTests.cpp.

References addTests(), ELECTRONMASSINMEV, HalfLifeEstimator::estimateHalfLife(), MassObject::getMassExcess(), MassTable::getMassObject(), MassTable::getMassObjects(), myTests, NEUTRONMASS, NULL, PROTONMASS, and ExperimentalValue::value.

{
  addTests();
  cout << "Running unit tests..." << endl;
  for(list<GenericUnitTest*>::iterator it = myTests.begin(); it!=myTests.end(); it++)
    {
      int response = (*it)->runUnitTests();
      if(response!=0)
        {
          cout << "Test failed. Further testing terminated." << endl;
          return response;
        }
    }
  cout << "All tests were successful." << endl;
  return 0;
}
 All Classes Files Functions Variables Enumerations Enumerator Defines

Back to the main page of the Precalibrated Ion Beam Identification Detector project

Created by Rikard Lundmark