![]() |
ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
|
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. |
The unit test program, executes unit tests.
Definition in file RunTests.cpp.
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; }