int main() { ComboLength cmbl; int siz = cmbl.howLong("AAABBBBAA"); return 0; }
bool do_test(string moves, int __expected) { time_t startClock = clock(); ComboLength *instance = new ComboLength(); int __result = instance->howLong(moves); double elapsed = (double)(clock() - startClock) / CLOCKS_PER_SEC; delete instance; if (__result == __expected) { cout << "PASSED!" << " (" << elapsed << " seconds)" << endl; return true; } else { cout << "FAILED!" << " (" << elapsed << " seconds)" << endl; cout << " Expected: " << to_string(__expected) << endl; cout << " Received: " << to_string(__result) << endl; return false; } }