int main () { #ifdef _DEBUG Profiler::set_total("ArrayHandler", 24); test_1 (); test_2 (); test_3 (); test_4 (); test_5 (); test_6 (); test_7 (); test_8 (); test_9 (); test_10 (); test_11 (); test_12 (); test_13 (); test_14 (); test_15 (); test_16 (); cout << "\n\nTesting iterators:\n\n"; Profiler::set_total("ArrayIterator", 17); test_17 (); test_18 (); test_19 (); test_20 (); //Profiler::report(); Profiler::report_to_file(); cout << "------------------------------------------------------------\n\n"; cout << " CHECK Profiler data in Profiler_report.txt\n\n"; cout << " To show all debug info - comment line 12 in ArrayIterator.h\n\n"; cout << "------------------------------------------------------------\n\n"; #else cout << "Testing requires DEBUG mode.\n\n"; #endif return EXIT_SUCCESS; }
int main() { printf("1) %d \n", test_1()); printf("2) %d \n", test_2()); test_3(); printf("\n4) %d \n", test_4()); printf("5) %d \n", test_5()); printf("6) %d \n", test_6()); printf("7) %d \n", test_7()); test_8(); test_9(); test_10(); printf("\n11) string \`%c\` \n", test_11()); printf("\n12) %d", test_12()); test_13(); test_14(); test_15(); test_16(); test_17(); test_18(); test_19(); }