![]() |
ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
|
00001 #include "RunTests.h" 00002 00003 00004 int main() 00005 { 00006 addTests(); 00007 cout << "Running unit tests..." << endl; 00008 for(list<GenericUnitTest*>::iterator it = myTests.begin(); it!=myTests.end(); it++) 00009 { 00010 int response = (*it)->runUnitTests(); 00011 if(response!=0) 00012 { 00013 cout << "Test failed. Further testing terminated." << endl; 00014 return response; 00015 } 00016 } 00017 cout << "All tests were successful." << endl; 00018 return 0; 00019 } 00020 00021 00022 void addTests() 00023 { 00024 myTests.push_back((GenericUnitTest*)(new DataFileException_TEST())); 00025 myTests.push_back((GenericUnitTest*)(new Dataset_TEST())); 00026 myTests.push_back((GenericUnitTest*)(new ENSDF_TEST())); 00027 myTests.push_back((GenericUnitTest*)(new Isotop_TEST())); 00028 myTests.push_back((GenericUnitTest*)(new Record_TEST())); 00029 }