Added bubblesort, quicksort, and search

This commit is contained in:
2018-12-02 17:25:22 -05:00
parent a0a74ff902
commit d79ab17353
2 changed files with 62 additions and 2 deletions

View File

@@ -24,13 +24,16 @@ bool testGetSum();
bool testIsFound();
bool testGetPermutations();
bool testGetFib();
bool testBubbleSort();
bool testQuickSort();
bool testSearch();
int main(){
mee::Stopwatch timer;
bool passedTest = false;
std::vector<boolFn> functions {testGetPrimes, tetsGetDivisors, testGetSum, testIsFound, testGetPermutations, testGetFib};
std::vector<std::string> names {"testGetPrimes", "testGetDivisors", "testGetSum", "testIsFound", "testGetPermutations", "testGetFib"};
std::vector<boolFn> functions {testGetPrimes, tetsGetDivisors, testGetSum, testIsFound, testGetPermutations, testGetFib, testBubbleSort, testQuickSort, testSearch};
std::vector<std::string> names {"testGetPrimes", "testGetDivisors", "testGetSum", "testIsFound", "testGetPermutations", "testGetFib", "testBubbleSort", "testQuickSort", "testSearch"};
//Start doing tests and print out the results of each
for(int cnt = 0;cnt < functions.size();++cnt){
@@ -167,6 +170,18 @@ bool testGetFib(){
return true;
}
bool testBubbleSort(){
}
bool testQuickSort(){
}
bool testSearch(){
}
/* Results:
Function testGetPrimes() passed the test
The test took 0.013203 milliseconds