int main ( ) /****************************************************************************/ /* Purpose: MAIN is the main program for CHEBYSHEV_POLYNOMIAL_PRB. Discussion: CHEBYSHEV_POLYNOMIAL_PRB tests the CHEBYSHEV_POLYNOMIAL library. Licensing: This code is distributed under the GNU LGPL license. Modified: 09 August 2013 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "CHEBYSHEV_POLYNOMIAL_PRB\n" ); printf ( " C version\n" ); printf ( " Test the CHEBYSHEV_POLYNOMIAL library.\n" ); test01 ( ); test02 ( ); test03 ( ); test04 ( ); test05 ( ); test06 ( ); test07 ( ); test08 ( ); test09 ( ); test10 ( ); test11 ( ); test12 ( ); test13 ( ); test14 ( ); test15 ( ); test16 ( ); test17 ( ); /* Terminate. */ printf ( "\n" ); printf ( "CHEBYSHEV_POLYNOMIAL_PRB\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
int main(){ printf("Test slist heights\n"); test_slist_heights(); printf("Test prgn\n"); test_prng(); printf("test_lock\n"); test_lock(); printf("test1\n"); test1(); printf("test2\n"); test2(); printf("test3\n"); test3(); printf("test4\n"); test4(); printf("test6\n"); test6(); printf("test7\n"); test7(); printf("test8\n"); test8(); printf("test9\n"); test9(); printf("test10\n"); test10(); printf("test11\n"); test11(); printf("test12\n"); test12(); return 0; }
int main() { int command; do { clrscr(); printf("FISZKI !!!!!!!!1\n"); printf("polski - Angielski & English - Polish\n"); printf("Wybierz polecenie: \n"); printf(" 1 - Test 10\n"); //printf(" 2 - Pokaz baze slowek\n"); //printf(" 3 - Dodaj slowko do bazy\n"); //printf(" 4 - Usun slowko do bazy\n"); printf(" 0 - Wyjdz\n"); scanf("%d", &command); switch (command) { case 1 : { test10(); break; } case 0 : { clrscr(); printf("BYE BYE :)\n"); break; } default : printf("FATAL ERROR XD\n"); break; } } while (command != 0); return 0; }
int main(int argc, char **argv) { // turn on super-secret hidden variable that suppresses all error messages, // because we test several error conditions and don't want the spewage: extern unsigned char KEYVAL_QUIET; KEYVAL_QUIET = 1; test1(); // test 1: error conditions (missing file, syntax problems) test2(); // test 2: valid but content-less files (empty, all whitespace, all comments) test3(); // test 3: single-element database created by file test4(); // test 4: two-element database created by setValue test5(); // test 5: escape sequences and other oddities test6(); // test 6: large file test7(); // test 7: lots of doubling-array edge cases test8(); // test 8: interpolated variables test9(); // test 9: saving's align and interp switches test10(); // test 10: custom KeyVal_strcmp function // there's a good meta-test to add here, which is to run 'test' itself through // valgrind to make sure there are no memory leaks. printf("\n"); printf("[test] results:\n"); printf(" %d passed\n", test_passes); printf(" %d failed\n", test_fails); // cleanup: remove(IN); remove(OUT); return test_fails > 0; }
int main(void) { welcome(); test1(); test2(); test3(); test4(); test5(); test6(); test7(); test8(); test9(); test10(); test11(); test12(); test13(); test14(); test15(); test16(); test17(); test18(); test19(); /* test20(); test21(); test22();*/ }
void _test (CIMClient & client) { try { test01 (client); test02 (client); test03 (client); test04 (client); test05 (client); test06 (client); test07 (client); test08 (client); test10 (client); test11 (client); test12 (client); test13 (client); // Don't run against the remote-namespace, not yet suppoted. if (providerNamespace == "test/TestProvider") { test09 (client); // Embedded Instance Test test14(client); // Embedded Instance Array Test } } catch (Exception & e) { cerr << "test failed: " << e.getMessage () << endl; exit (-1); } }
int main() { int result = 0; result |= test1(); result |= test2(); result |= test3(); result |= test4(); result |= test5(); result |= test6(); result |= test7(); result |= test8(); result |= test9(); result |= test10(); result |= tests_from_supercop(); result |= test2Parts0(); result |= test2Parts1(); result |= test2PartsFull(); result |= test16Parts0(); result |= test16Parts1(); result |= test16PartsFull(); if (result) { puts("Test result: FAILED"); } else { puts("Tests result: SUCCESS"); } return 0; }
int main( ) { test10( ); test100( ); test1000( ); return 0; }
void Test::runTests() { int score = 0; std::cerr << "\n\n=========================\n"; std::cerr << " RUNNING TEST SUITE \n"; std::cerr << "=========================\n\n"; //Run test and award points where appropriate score += test1() ? 5: 0; score += test2() ? 5: 0; score += test3() ? 5: 0; score += test4() ? 5: 0; score += test5() ? 5: 0; score += test6() ? 5: 0; score += test7() ? 5: 0; score += test8() ? 5: 0; score += test9() ? 5: 0; score += test10() ? 5: 0; score += test11() ? 5: 0; score += test12() ? 10: 0; std::cerr << "Score: " << score << " / " << MAX_SCORE << std::endl; }
void Test_LinkedList::runTests() { int score = 0; const int MAX_SCORE = 100; std::cerr << "\n\n=========================\n"; std::cerr << " RUNNING TEST SUITE \n"; std::cerr << "=========================\n\n"; //Run test and award points where appropriate score += test1() ? 2 : 0; score += test2() ? 2 : 0; score += test3() ? 3 : 0; score += test4() ? 5 : 0; score += test5() ? 5 : 0; score += test6() ? 5 : 0; score += test7() ? 5 : 0; score += test8() ? 2 : 0; score += test9() ? 5 : 0; score += test10() ? 5 : 0; score += test11() ? 2 : 0; score += test12() ? 5 : 0; score += test13() ? 2 : 0; score += test14() ? 2 : 0; score += test15() ? 5 : 0; score += test16() ? 20 : 0; score += test17() ? 5 : 0; score += test18() ? 20 : 0; std::cerr << "Score: " << score << " / " << MAX_SCORE << std::endl; }
void main() { test_shared_ptr(); test01(); test02(); test03(); test04(); #ifdef NTL_CXX_RV test05(); #endif test06(); test07(); test08(); test09(); test10(); test11(); test12(); test14(); test15(); test16(); test17(); test18(); test19(); test20(); test21(); test22(); test23(); test24(); test25(); #ifdef _CPPUNWIND test26(); #endif // TODO: "libstdc++-v3\testsuite\20_util\shared_ptr\creation" и далее }
void main() { test1(); test2(); test3(); test4(); printf("result = %d\n", 10%3); printf("%02d", 1); test5(); test6(); test7(); //test8(); test9(); test10(); test11(); test12(); }
int main(int argc, char ** argv) { if (argc != 2) goto error; else if (!strcmp(argv[1], "test1")) { test1(); } else if (!strcmp(argv[1], "test2")) { test2(); } else if (!strcmp(argv[1], "test3")) { test3(); } else if (!strcmp(argv[1], "test4")) { test4(); } else if (!strcmp(argv[1], "test5")) { test5(); } else if (!strcmp(argv[1], "test6")) { test6(); } else if (!strcmp(argv[1], "test7")) { test7(); } else if (!strcmp(argv[1], "test8")) { test8(); } else if (!strcmp(argv[1], "test9")) { test9(); } else if (!strcmp(argv[1], "test10")) { test10(); } else goto error; return 0; error: printf("Error: bad testcase!\n"); printf("Usage: test test1|test2|...|test10\n"); printf("\nIf you feel this is incorrect, there may be an issue with strcmp.\n"); }
int main(int argc, const char* argv[]) { printf("\n--> main()\n"); (void)argc; (void)argv; myapi_init(); if (true) { test0(); test1(); test2(); test3(); test4(); test5(); test6(); test7(); test8(); test9(); test10(); test11(); test12(); } else { test12(); } myapi_finit(); printf("\n<-- main()\n"); return 0; }
int main () { int ret = 0; printf ("Direct case testing of bstraux functions\n"); ret += test0 (); ret += test1 (); ret += test2 (); ret += test3 (); ret += test4 (); ret += test5 (); ret += test6 (); ret += test7 (); ret += test8 (); ret += test9 (); ret += test10 (); ret += test11 (); ret += test12 (); ret += test13 (); ret += test14 (); printf ("# test failures: %d\n", ret); return 0; }
void test2bits(void) { int k, l; for (k = 1; k <= 30; k++) for (l = 0; l < k; l++) test10((1u << k) | (1u << l)); }
void test3bits(void) { int j, k, l; for (j = 2; j <= 30; j++) for (k = 1; k < j; k++) for (l = 0; l < k; l++) test10((1u << j) | (1u << k) | (1u << l)); }
void test4bits(void) { int i, j, k, l; for (i = 3; i <= 30; i++) for (j = 2; j < i; j++) for (k = 1; k < j; k++) for (l = 0; l < k; l++) test10((1u << i) | (1u << j) | (1u << k) | (1u << l)); }
int main() { std::ifstream fin ("../data/storyDataFile.txt"); std::size_t quantity9 = 0, quantity10 = 0; BoundTest test9(1, 9); BoundTest test10(1, 10); for (std::string word; fin >> word; ) { if (test9(word)) ++quantity9;
void testrand(unsigned cnt) { while (cnt--) { unsigned v; v = myRand() & 0x7FFF; v = (v << 15) | (myRand() & 0x7FFF); v = (v << 1) | (myRand() & 0x1); test10(v); } }
int main ( ) /******************************************************************************/ /* Purpose: MAIN is the main program for WAVELET_PRB. Discussion: WAVELET_PRB tests the WAVELET library. Licensing: This code is distributed under the GNU LGPL license. Modified: 09 May 2012 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "WAVELET_PRB\n" ); printf ( " C version\n" ); printf ( " Test the WAVELET library.\n" ); test01 ( ); test02 ( ); test03 ( ); test04 ( ); test05 ( ); test06 ( ); test07 ( ); test08 ( ); test09 ( ); test10 ( ); /* Terminate. */ printf ( "\n" ); printf ( "WAVELET_PRB\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
void initWorldModelling(int testcase) { /* create world */ dRandSetSeed(1); dInitODE(); //dInitODE2(dInitFlagManualThreadCleanup); //dAllocateODEDataForThread(dAllocateMaskAll); world = dWorldCreate(); space = dHashSpaceCreate (0); //dWorldSetAutoDisableFlag(World, 1); // The parameter needs to be zero. contactgroup = dJointGroupCreate (0); dWorldSetGravity (world,0,-9.81f,0); dWorldSetCFM (world,1e-2f); //1e-5f was the originally value used. dWorldSetERP(world,1.0f); // 1 is Error Correction is applied. // Set Damping dWorldSetLinearDamping(world, 0.01f); // 0.00001 dWorldSetAngularDamping(world, 0.005f); // 0.005 dWorldSetMaxAngularSpeed(world, 200); // Set and get the depth of the surface layer around all geometry objects. Contacts are allowed to sink into the surface layer up to the given depth before coming to rest. The default value is zero. Increasing this to some small value (e.g. 0.001) can help prevent jittering problems due to contacts being repeatedly made and broken. dWorldSetContactSurfaceLayer (world,0.001f); ground = dCreatePlane (space,0,1,0,0); switch(testcase) { case 1:initIslands();test1();break;// Carrier stability case 2:initIslands();test1();test2();break;// Manta landing on island. case 3:initIslands();test1();test2();test3();break;// Manta crashing on structure case 4:initIslands();test1();test2();test3();test4();break;// Manta landing on runway case 5:initIslands();test1();test2();break;// Manta landing on aircraft case 6:initIslands();test1();test6();break;// Carrier stranded on island case 7:test1();test2();test7();break; //Manta crashing on water. case 8:initIslands();test1();test8();break; // Walrus reaching island. case 9:test1();test9();break; // Walrus stability. case 10:initIslands();test1();test10();break; // Walrus arrive to island and build the command center. case 11:initIslands();test11();break; // Carrier stability far away. case 12:initIslands();test1();test12();break; // Bullets case 13:initIslands();test13();break; default:initIslands();test1();break; } testing = testcase; }
void parse_cmd(String str) { if(str == "help") {printHelp();} else if(str == "t1") {test01(RUNTEST);} else if(str == "t2") {test02(RUNTEST);} else if(str == "t3") {test03(RUNTEST);} else if(str == "t4") {test04(RUNTEST);} else if(str == "t5") {test05(RUNTEST);} else if(str == "t6") {test06(RUNTEST);} else if(str == "t7") {test07(RUNTEST);} else if(str == "t8") {test08(RUNTEST);} else if(str == "t9") {test09(RUNTEST);} else if(str == "ta") {test10(RUNTEST);} else if(str == "tb") {test11(RUNTEST);} else if(str == "tc") {test12(RUNTEST);} else if(str == "td") {test13(RUNTEST);} else if(str == "te") {test14(RUNTEST);} else if(str == "tf") {test15(RUNTEST);} else if(str == "d1") {test01(DESCRIPTION);} else if(str == "d2") {test02(DESCRIPTION);} else if(str == "d3") {test03(DESCRIPTION);} else if(str == "d4") {test04(DESCRIPTION);} else if(str == "d5") {test05(DESCRIPTION);} else if(str == "d6") {test06(DESCRIPTION);} else if(str == "d7") {test07(DESCRIPTION);} else if(str == "d8") {test08(DESCRIPTION);} else if(str == "d9") {test09(DESCRIPTION);} else if(str == "da") {test10(DESCRIPTION);} else if(str == "db") {test11(DESCRIPTION);} else if(str == "dc") {test12(DESCRIPTION);} else if(str == "dd") {test13(DESCRIPTION);} else if(str == "de") {test14(DESCRIPTION);} else if(str == "df") {test15(DESCRIPTION);} else {Serial.print("\n\rBad Command: "); Serial.println(str);} }
bool TestSeqToKMers::runTests() { BUTT_PRE_TESTS(); BUTT_RUN_TEST("TestSeqToKMers test 1", test1()); BUTT_RUN_TEST("TestSeqToKMers test 2", test2()); BUTT_RUN_TEST("TestSeqToKMers test 3", test3()); BUTT_RUN_TEST("TestSeqToKMers test 4", test4()); BUTT_RUN_TEST("TestSeqToKMers test 5", test5()); BUTT_RUN_TEST("TestSeqToKMers test 6", test6()); BUTT_RUN_TEST("TestSeqToKMers test 7", test7()); BUTT_RUN_TEST("TestSeqToKMers test 8", test8()); BUTT_RUN_TEST("TestSeqToKMers test 9", test9()); BUTT_RUN_TEST("TestSeqToKMers test 10", test10()); BUTT_POST_TESTS(); }
int main(int, char**) { test1(); test2(); test3(); test4(); test5(); test6(); test7(); test8(); test9(); test10(); test11(); return 0; }
int main(int argc, char const *argv[]) { // extensive testing here! test1(); test2(); test3(); test4(); test5(); test6(); test7(); test8(); test9 (); test10(); printf("All tests passed, you are Awesome!\n"); return EXIT_SUCCESS; }
int main(int argc, char** argv) { int regressLevel = 2; if (argc > 1) regressLevel = atoi(argv[1]); printf("Running C API test, regress level = %d\n", regressLevel); printf("\ntest1() {\n"); test1(); check_error("test1"); printf("\n}\ntest2() {\n"); test2(); check_error("test2"); /* TODO: implement parseExpr */ /* test3(); */ /* check_error("test3"); */ printf("\n}\ntest4() {\n"); test4(regressLevel); check_error("test4"); printf("\n}\ntest5() {\n"); test5(); check_error("test5"); if (regressLevel > 0) { printf("\n}\ntest6() {\n"); test6(); check_error("test6"); } printf("\n}\ntest7() {\n"); test7(); check_error("test7"); if (regressLevel > 0) { printf("\n}\ntest8() {\n"); test8(); check_error("test8"); printf("\n}\ntest9() {\n"); test9(); check_error("test9"); } printf("\n}"); printf("\ntest10() {\n"); test10(); printf("\n}"); printf("\ntest11() {\n"); test11(); printf("\n}\n"); return 0; }
void test_operatorDiv() { std::cout << "Start operator /" << std::endl; //The lines below is about overflow operations /, to check //the assertions, please uncomment the lines below : // numeric::Fraction<int> test1(std::numeric_limits<int>::max(), 3); // numeric::Fraction<int> test2(5, std::numeric_limits<int>::max()); // numeric::Fraction<int> result = test1 / test2; // std::cout << "FAIL" << std::endl; // numeric::Fraction<int> test3(3, 80); // numeric::Fraction<int> test4(std::numeric_limits<int>::max(), 2); // numeric::Fraction<int> result2 = test3 / test4; // std::cout << "FAIL" << std::endl; // numeric::Fraction<int> test5(std::numeric_limits<int>::min(), 9); // numeric::Fraction<int> test6(9, 8); // numeric::Fraction<int> result3 = test5 / test6; // std::cout << "FAIL" << std::endl; // numeric::Fraction<int> test7(9, 66); // numeric::Fraction<int> test8(44, std::numeric_limits<int>::max()); // numeric::Fraction<int> result4 = test7 / test8; // std::cout << "FAIL" << std::endl; numeric::Fraction<int> test9(3, 5); numeric::Fraction<int> test10(7, 2); numeric::Fraction<int> result5 = test9 / test10; numeric::Fraction<int> const result_test5(6, 35); if (result5 == result_test5) std::cout << "OK" << std::endl; else std::cout << "KO" << std::endl; numeric::Fraction<int> test11(9, 12); numeric::Fraction<int> test12(12, 9); numeric::Fraction<int> result6 = test11 / test12; numeric::Fraction<int> const result_test6(81, 144); if (result6 == result_test6) std::cout << "OK" << std::endl; else std::cout << "KO" << std::endl; numeric::Fraction<int> test13(0, 0); numeric::Fraction<int> test14(12, 3); numeric::Fraction<int> result7 = test13 / test14; std::cout << "RESULT = " << result7 << std::endl << "Result supposed to be = NaN" << std::endl; numeric::Fraction<int> test15(10, 0); numeric::Fraction<int> test16(4, -9); numeric::Fraction<int> result8 = test15 / test16; std::cout << "RESULT = " << result8 << std::endl << "Result supposed to be = -Inf" << std::endl; }
void Test::runTests() { int score = 0; std::cerr << "\n\n=========================\n"; std::cerr << " RUNNING TEST SUITE \n"; std::cerr << "=========================\n\n"; //Run test and award points where appropriate score += test1() ? 1: 0; score += test2() ? 1: 0; score += test3() ? 1: 0; score += test4() ? 2: 0; score += test5() ? 2: 0; score += test6() ? 2: 0; score += test7() ? 2: 0; score += test8() ? 1: 0; score += test9() ? 2: 0; score += test10() ? 2: 0; score += test11() ? 1: 0; score += test12() ? 3: 0; score += test13() ? 1: 0; score += test14() ? 1: 0; score += test15() ? 2: 0; score += test16() ? 2: 0; score += test17() ? 3: 0; score += test18() ? 3: 0; score += test19() ? 3: 0; score += test20() ? 2: 0; score += test21() ? 2: 0; score += test22() ? 3: 0; score += test23() ? 5: 0; score += test24() ? 2: 0; score += test25() ? 2: 0; score += test26() ? 3: 0; score += test27() ? 3: 0; score += test28() ? 2: 0; score += test29() ? 2: 0; score += test30() ? 7: 0; score += test31() ? 7: 0; std::cerr << "Score: " << score << " / " << MAX_SCORE << std::endl; }
int main(int argc, char* argv[]) { test_init("opal_argv_t"); if( test1() ) test_success(); else test_failure("test1 argv test failed"); if( test2() ) test_success(); else test_failure("test2 argv test failed"); if( test3() ) test_success(); else test_failure("test3 argv test failed"); if( test4() ) test_success(); else test_failure("test4 argv test failed"); if( test5() ) test_success(); else test_failure("test5 argv test failed"); if( test6() ) test_success(); else test_failure("test6 argv test failed"); if( test7() ) test_success(); else test_failure("test7 argv test failed"); if( test8() ) test_success(); else test_failure("test8 argv test failed"); if (test9()) { test_success(); } else { test_failure("test9 argv test failed"); } if (test10()) { test_success(); } else { test_failure("test10 argv test failed"); } /* All done */ return test_finalize(); }