/* * lab3_test.cpp * * Created on: Mar 29, 2019 * Author: johnsontimoj */ /////////////////////////////////////////////////////// // // Test for EE2510 (Johnson) Lab 3 // // Sol, Time, SolTime Classes // /////////////////////////////////////////////////////// #include "time_test.h" #include "sol_test.h" #include "soltime_test.h" #include using namespace std; int main(void){ int error; ////////////////////// // Tests for Time ////////////////////// error = time_test(); if(error == 0){ cout << "/////////////////////////////" << endl; cout << " Time passed " << endl; cout << "/////////////////////////////" << endl; } else { cout << "/////////////////////////////" << endl; cout << " Time failed " << endl; cout << " code:" << error << " " << endl; cout << "/////////////////////////////" << endl; } ////////////////////// // Tests for Sol ////////////////////// error = sol_test(); if(error == 0){ cout << "/////////////////////////////" << endl; cout << " Sol passed " << endl; cout << "/////////////////////////////" << endl; } else { cout << "/////////////////////////////" << endl; cout << " Sol failed " << endl; cout << " code:" << error << " " << endl; cout << "/////////////////////////////" << endl; } ////////////////////// // Tests for SolTime ////////////////////// error = soltime_test(); if(error == 0){ cout << "/////////////////////////////" << endl; cout << " SolTime passed " << endl; cout << "/////////////////////////////" << endl; } else { cout << "/////////////////////////////" << endl; cout << " SolTime failed " << endl; cout << " code:" << error << " " << endl; cout << "/////////////////////////////" << endl; } return 0; }