//main() int main(int argc, char** argv){ bool is_colored = (argc > 1 && tolower(argv[1][0]) == 'c') && isatty(STDOUT_FILENO); colored_out coloroutput; if (is_colored) { coloroutput.set_expected_file("soln_testbst.out"); int status = coloroutput.start(); if (status < 0) return 0; } cout << "\t\t\tTESTING INSERTIONS\n\n"; testInsert(); cout << "\t\t\tTESTING FINDS\n\n"; testFind(); cout << "\t\t\tTESTING REMOVALS\n\n"; testRemove(); cout << "\t\t\tTESTING KEY SORT\n\n"; testKeySort(); cout << "\t\t\tTESTING LEVEL ORDER\n\n"; testLevelOrder(); return 0; }
int main() { testBuildingWithIndividualChars(); testBuildingWithStringProviders(); testConcat(); testCharTypes(); testStringProviderWithExplicitSize(); testCharAt(); testFind(); testRFind(); testSubstring(); }
int main() { int rv = 0; rv += testEmpty(); rv += testAccess(); rv += testWrite(); rv += testFind(); rv += testVoid(); rv += testRFind(); rv += testCompressWhitespace(); if (0 == rv) { fprintf(stderr, "PASS: StringAPI tests\n"); } return rv; }