int main(int argc, char *argv[]) { int iRC; iRC=EXIT_SUCCESS; if (argc != 1) { fprintf(stderr, "Usage: %s\n", argv[0]); iRC=EXIT_FAILURE; exit(iRC); } if (test_1())exit(1); if (test_2())exit(1); if (test_3())exit(1); if (test_4())exit(1); if (test_5())exit(1); if (test_6())exit(1); if (test_7())exit(1); if (test_8())exit(1); if (test_9())exit(1); if (test_10())exit(1); exit(iRC); }
void main() { FILE *output; char buf[5]; output = stderr; /* direct output to a stream */ fprintf(output, "\n\n" "DATETEST.C By Michael W. Maher 10/13/92\n" "Testing DATECONV.C C functions...\n\n"); /* Tests days_in_month() function. */ fprintf(output, "TEST #%d: %s\n", 1, testout(test_1(output), buf)); /* Tests the days_to_date() function. */ fprintf(output, "TEST #%d: %s\n", 2, testout(test_2(output), buf)); /* Test the months_to_date() function. */ fprintf(output, "TEST #%d: %s\n", 3, testout(test_3(output), buf)); /* Test the days_elapsed() function. */ fprintf(output, "TEST #%d: %s\n", 4, testout(test_4(output), buf)); /* Test Julian / Gregorian date conversion functions. */ fprintf(output, "TEST #%d: %s\n", 5, testout(test_5(output), buf)); return; }
int main(int argc, char **argv) { // backlight on DDRD |= (1<<0); PORTD |= (1<<0); MCUSR &= ~_BV(WDRF); wdt_disable(); LCDG_InitPort(); _delay_ms(30); // takes longer? LCDG_InitLcd(); LCDG_ClrAllDisp(); terminal__init(); // TX as out DDRD |= (1<<3); // RTS as out DDRD |= (1<<6); print_result(PSTR("RTS=0 TX=0 RX=0"), test_1()); print_result(PSTR("RTS=0 TX=1 RX=1"), test_2()); print_result(PSTR("RTS=1 TX=0 RX=0"), test_3()); print_result(PSTR("RTS=1 TX=1 RX=0"), test_4()); while(1); return 0; }
void ft_cat_test(void) { puts(""); puts("ft_cat:"); test_1(); test_2(); test_3(); }
void ft_isprint_test(void) { puts(""); puts("ft_isprint:"); test_1(); test_2(); test_3(); }
void ft_isalnum_test(void) { puts(""); puts("ft_isalnum:"); test_1(); test_2(); test_3(); }
void ft_isblank_test(void) { puts(""); puts("ft_isblank:"); test_1(); test_2(); test_3(); }
int main() { test_1(); test_2(); test_3(); return 0; }
int main(int argc, char const *argv[]) { test_1(); test_2(); test_3(); test_4(); return 0; }
/*------------------------------------------------------------------------- * Function: main * * Purpose: Runs external dataset tests. * * Return: Success: exit(0) * * Failure: exit(non-zero) * * Programmer: Robb Matzke * Tuesday, March 3, 1998 * * Modifications: * *------------------------------------------------------------------------- */ int main (void) { hid_t fapl=-1; /*file access properties */ hid_t file=-1; /*file for test_1* functions */ char filename[1024]; /*file name for test_1* funcs */ hid_t grp=-1; /*group to emit diagnostics */ int nerrors=0; /*number of errors */ h5_reset(); fapl = h5_fileaccess(); h5_fixname(FILENAME[0], fapl, filename, sizeof filename); if((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0) FAIL_STACK_ERROR if((grp = H5Gcreate2(file, "emit-diagnostics", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR if(H5Gclose(grp) < 0) goto error; nerrors += test_1a(file); nerrors += test_1b(file); nerrors += test_1c(file); nerrors += test_1d(file); nerrors += test_1e(file); nerrors += test_1f(file); nerrors += test_1g(); nerrors += test_1h(); nerrors += test_2(fapl); nerrors += test_3(fapl); nerrors += test_4(fapl); /* Verify symbol table messages are cached */ nerrors += (h5_verify_cached_stabs(FILENAME, fapl) < 0 ? 1 : 0); if (nerrors>0) goto error; if (H5Fclose(file) < 0) goto error; puts("All external storage tests passed."); if (h5_cleanup(FILENAME, fapl)) { remove("extern_1a.raw"); remove("extern_1b.raw"); remove("extern_2a.raw"); remove("extern_2b.raw"); remove("extern_3a.raw"); remove("extern_3b.raw"); remove("extern_4a.raw"); remove("extern_4b.raw"); } return 0; error: H5E_BEGIN_TRY { H5Fclose(file); H5Pclose(fapl); } H5E_END_TRY; nerrors = MAX(1, nerrors); printf ("%d TEST%s FAILED.\n", nerrors, 1==nerrors?"":"s"); return 1; }
int main() { printf("Test 1\n"); test_1(); printf("Test 2\n"); test_2(); printf("Test 3\n"); test_3(); printf("Test 4\n"); test_4(); }
// // The Main function just runs the tests above. // bool Timer_tests() { std::cout << "Class Timer test program (2006-02-10)\n" << std::endl; test_1(); test_2(); test_3(); return true; }
void test(int N) { test_1(N); test_2(N); test_3(N); test_4(N); test_5(N); test_6(N); test_7(N); test_8(N); }
int main() { printf("%i\n", overhead); test_1(); test_2(); test_3(); test_4(); test_5(); menu(); return 0; }
/* Main program */ int main (void) { printf("Test 1 (write a byte): "); test_1(); printf("Test 2 (write 1-byte utf-8): "); test_2(); printf("Test 3 (write 2-byte utf-8): "); test_3(); printf("Test 4 (write 3+4-byte utf-8): "); test_4(); printf("Test 5 (read a byte): "); test_5(); printf("Test 6 (read 1-byte utf-8): "); test_6(); printf("Test 7 (read 2-byte utf-8): "); test_7(); printf("Test 8 (read 3+4-byte utf-8): "); test_8(); return 0; }
void test_wsdl_main_request(const axutil_env_t* env) { axis2_char_t* wsdl_location = WSDL_FOLDER; axis2_char_t* xslt_location = XSLT_FOLDER; test_1(env, wsdl_location, xslt_location); test_2(env, wsdl_location, xslt_location); test_3(env, wsdl_location, xslt_location); test_4(env, wsdl_location, xslt_location); test_5(env, wsdl_location, xslt_location); }
static void test_sllist(void) { test_1(); test_2(); test_3(); test_4(); test_5(); test_6(); test_8(); test_9(); test_10(); test_11(); }
int main() { std::cout << "Test 2D linear least squares fitting of segments" << std::endl; test_1(); test_2(); test_3(); test_4(); test_5(20); // test_2D_point_set(100); return 0; // success }
int main(){ printf("Pass: 1, Fail: 0\n=============\n"); printf("\n\nTest 1aBoolean: %u\n=============\n", test_1a_bool()); printf("\n\nTest 1aInteger: %u\n=============\n", test_1a_int()); printf("\n\nTest 1b: %u\n=============\n", test_1b()); printf("\n\nTest 2: %u\n=============\n", test_2()); printf("\n\nTest 3: %u\n=============\n", test_3()); printf("\n\nTest 4: %u\n=============\n", test_4()); printf("\n\nTest 5: %u\n=============\n", test_5()); printf("\n\nTest 6: %u\n=============\n", test_6()); printf("\n\nTest 7: %u\n=============\n", test_7()); return 0; }
int main() { struct stack st; int i; float x = 1.48; float y; int val = 100; stack_init(&st, sizeof(float)); for (i = 0; i < 10; i++) { stack_push(&st, &x); x++; } while (stack_get_size(&st)) { stack_pop(&st, &y); printf("%f\n", y); } for (i = 0; i < 10; i++) { stack_push(&st, &x); x++; } while (stack_get_size(&st)) { stack_pop(&st, &y); printf("%f\n", y); } stack_destroy(&st); stack_init(&st, sizeof(int)); for (i = 0; i < 10; i++) { stack_push(&st, &val); val++; } while (stack_get_size(&st)) { stack_pop(&st, &val); printf("%d\n", val); } test_1(); test_2(); test_3(); return 0; }
void test() { test_1(); test_2(); test_3(); test_4(); test_5(); test_6(); test_7(); test_8(); test_9(); test_10(); test_11(); test_12(); }
int main(){ fixtureSetup(); resetTestCount(); testStarted("test_1"); setup(); test_1(); tearDown(); testEnded(); testStarted("test_2"); setup(); test_2(); tearDown(); testEnded(); testStarted("test_3"); setup(); test_3(); tearDown(); testEnded(); testStarted("test_4"); setup(); test_4(); tearDown(); testEnded(); testStarted("test_5"); setup(); test_5(); tearDown(); testEnded(); testStarted("test_6"); setup(); test_6(); tearDown(); testEnded(); testStarted("test_7"); setup(); test_7(); tearDown(); testEnded(); testStarted("test_8"); setup(); test_8(); tearDown(); testEnded(); summarizeTestCount(); fixtureTearDown(); return 0; }
int main() { test_1(1000); test_2(1000); test_3(1000); test_4(1000); test_5(1000); test_6(1000); test_7(1000); test_8(1000); test_9(1000); test_10(1000); return test_result(); }
int32_t main (void) { setbuf(stdout, NULL); printf ("Performing HMAC tests (RFC4231 test vectors)...\n"); test_1 (); test_2 (); test_3 (); test_4 (); test_5 (); test_6 (); test_7 (); printf ("All HMAC tests succeeded!\n\n"); return 0; }
int main(int argc, char** argv) { if (argc == 2) { test_0(argv[1]); return 0; } test_1(); test_2(); test_3(); test_4(); test_5(); return 0; }
int main() { int i, j; sranddev(); lnp_routing_table_initialize(); for (j=0; j<id_n; j++) { for (i=0; i<ID_LENGTH; i++) { id[j][i] = (u_char)(((double)rand()/RAND_MAX)*26)+'A'; } } test_1(); printf("--------\n"); test_3(); printf("--------\n"); test_4(); //test_2(); }
int main(){ bool test4_pass=test_4(); std::cout<<"#4 test result = "<<((test4_pass )?"PASS":"******") <<std::endl; bool test1_pass=test_1(); std::cout<<"#1 test result = "<<((test1_pass )?"PASS":"******") <<std::endl; bool test2_pass=test_2(); std::cout<<"#2 test result = "<<((test2_pass )?"PASS":"******") <<std::endl; bool test3_pass=test_3(4,10000); std::cout<<"#3 test result = "<<((test3_pass )?"PASS":"******") <<std::endl; //bool test4_pass=test_4(); //std::cout<<"#4 test result = "<<((test4_pass )?"PASS":"******") <<std::endl; std::cout<<"Final test result = "<<((test1_pass && test2_pass && test3_pass && test4_pass )?"PASS":"******") <<std::endl; return 0; }
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; }
main() { printf("test_stdio_1 START\n"); if (fullname = malloc (strlen (dir_name) + strlen (base_name) + 2)) { sprintf (fullname, "%s/%s", dir_name, base_name); } else { perror ("malloc"); exit(1); } if (test_1() || test_2() || test_3()) { printf("test_stdio_1 FAILED\n"); exit(1); } printf("test_stdio_1 PASSED\n"); exit(0); }
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(); }