mirror of
https://bitbucket.org/Mattrixwv/my-classes.git
synced 2025-12-06 18:23:57 -05:00
Added bubblesort, quicksort, and search
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user