int main() { printf("Starting Merge Function test ! \n"); int flag = mergeTest(); printf("Test %s \n", flag ? "PASSed" : "FAILED" ); }
int main(int argn, char** argv) { int errs = 0; int newErrs = 0; newErrs = constructorTest(); if (newErrs != 0) { std::cout << "constructorTest failed. " << newErrs << " errors occured.\n"; errs += newErrs; } newErrs = findDupTest(); if (newErrs != 0) { std::cout << "findDupTest failed. " << newErrs << " errors occured.\n"; errs += newErrs; } newErrs = mergeTest(); if (newErrs != 0) { std::cout << "mergeTest failed. " << newErrs << " errors occured.\n"; errs += newErrs; } newErrs = addEntryTest(); if (newErrs != 0) { std::cout << "addEntryTest failed. " << newErrs << " errors occured.\n"; errs += newErrs; } newErrs = getCPCSRArraysTest(); if (newErrs != 0) { std::cout << "getCPCSRArraysTest failed. " << newErrs << " errors occured.\n"; errs += newErrs; } newErrs = spmvTest(); if (newErrs != 0) { std::cout << "spmvTest failed. " << newErrs << " errors occured.\n"; errs += newErrs; } return errs; }