int main(int argc,char **argv) { // Create a test molecule OpenBabel::OBMol mol; OpenBabel::OBAtom* a[5]; a[0] = mol.NewAtom(); a[0]->SetAtomicNum(6); a[0]->SetVector(-0.013, 1.086, 0.008); a[1] = mol.NewAtom(); a[1]->SetAtomicNum(1); a[1]->SetVector( 0.002, -0.004, 0.002); a[2] = mol.NewAtom(); a[2]->SetAtomicNum(9); a[2]->SetVector( 1.300, 1.570, -0.002); a[3] = mol.NewAtom(); a[3]->SetAtomicNum(35); a[3]->SetVector(-0.964, 1.737, -1.585); a[4] = mol.NewAtom(); a[4]->SetAtomicNum(17); a[4]->SetVector(-0.857, 1.667, 1.491); OpenBabel::OBBond* b; for (int i(1); i < 5; ++i) { b = mol.NewBond(); b->SetBegin(a[0]); b->SetEnd(a[i]); b->SetBondOrder(1); } // Run the tests test01(&mol); test02(&mol); test03(&mol); test04(&mol); test05(&mol); test06(&mol); test07(&mol); test08(&mol); test09(&mol); // End return 0; }
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; }
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 JsonTest::run() { test01(); test02(); test03(); test04(); }
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); } }
void ResourceTest::run() { test01(); test02(); test03(); test04(); }
/** * Test CoordinateUTM Constructors */ TEST( CoordinateUTM, Constructors ){ // test 1 GEO::CoordinateUTM_d test01( 11, 100, -100, 250, GEO::Datum::WGS84 ); ASSERT_EQ( test01.zone(), 11 ); ASSERT_NEAR( test01.easting(), 100, 0.00001 ); ASSERT_NEAR( test01.northing(), -100, 0.00001); ASSERT_NEAR( test01.altitude(), 250, 0.00001 ); ASSERT_EQ( test01.datum(), GEO::Datum::WGS84 ); // test 2 GEO::CoordinateUTM_d test02; ASSERT_EQ( test02.zone(), 31 ); ASSERT_NEAR( test02.easting(), 166021.4, 0.00001 ); ASSERT_NEAR( test02.northing(), 0, 0.00001 ); ASSERT_NEAR( test02.altitude(), 0, 0.00001 ); ASSERT_EQ( test02.datum(), GEO::Datum::WGS84 ); // test 3 GEO::CoordinateUTM_d test03( GEO::Datum::EGM96 ); ASSERT_EQ( test03.zone(), 31 ); ASSERT_NEAR( test03.easting(), 166021.4, 0.0001 ); ASSERT_NEAR( test03.northing(), 0, 0.0001 ); ASSERT_NEAR( test03.altitude(), 0, 0.0001 ); ASSERT_EQ( test03.datum(), GEO::Datum::EGM96 ); }
int main () { test01(); test02(); test03(); return errors ? 1 : 0; }
int main ( ) /******************************************************************************/ /* Purpose: MAIN is the main program for PWL_INTERP_2D_SCATTERED_PRB. Discussion: PWL_INTERP_2D_SCATTERED_PRB tests the PWL_INTERP_2D_SCATTERED library. Licensing: This code is distributed under the GNU LGPL license. Modified: 25 October 2012 Author: John Burkardt */ { int prob; int prob_num; timestamp ( ); printf ( "\n" ); printf ( "PWL_INTERP_2D_SCATTERED_PRB:\n" ); printf ( " C version\n" ); printf ( " Test the PWL_INTERP_2D_SCATTERED library.\n" ); printf ( " The R8LIB library is needed.\n" ); printf ( " This test also needs the TEST_INTERP_2D library.\n" ); test01 ( ); test02 ( ); /* Numerical tests. */ prob_num = f00_num ( ); for ( prob = 1; prob <= prob_num; prob++ ) { test03 ( prob ); } /* Terminate. */ printf ( "\n" ); printf ( "PWL_INTERP_2D_SCATTERED_PRB:\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
int main(int argc, char** argv) { verbose = (getenv ("PEGASUS_TEST_VERBOSE")) ? true : false; test01(); test02(); test03(); cout << "+++++ passed all tests" << endl; return 0; }
int test_run ( void ) { int error_code = 0; error_code = test01(); /* Run one of the tests */ error_code = test02(); /* Run one of the tests */ error_code = test03(); /* Run one of the tests */ error_code = test04(); /* Run one of the tests */ return error_code; }
int main ( ) /******************************************************************************/ /* Purpose: MAIN is the main program for FEM1D_BVP_LINEAR_PRB. Location: http://people.sc.fsu.edu/~jburkardt/c_src/fem1d_bvp_linear/fem1d_bvp_linear_prb.c Discussion: FEM1D_BVP_LINEAR_PRB tests the FEM1D_BVP_LINEAR library. Licensing: This code is distributed under the GNU LGPL license. Modified: 16 June 2014 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "FEM1D_BVP_LINEAR_PRB\n" ); printf ( " C version\n" ); printf ( " Test the FEM1D_BVP_LINEAR library.\n" ); test01 ( ); test02 ( ); test03 ( ); test04 ( ); test05 ( ); test06 ( ); test07 ( ); test08 ( ); test09 ( ); /* Terminate. */ printf ( "\n" ); printf ( "FEM1D_BVP_LINEAR_PRB\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
int spectrophoretest(int argc, char* argv[]) { int defaultchoice = 1; int choice = defaultchoice; if (argc > 1) { if(sscanf(argv[1], "%d", &choice) != 1) { printf("Couldn't parse that input as a number\n"); return -1; } } // Create a test molecule OpenBabel::OBMol mol; OpenBabel::OBAtom* a[5]; a[0] = mol.NewAtom(); a[0]->SetAtomicNum(6); a[0]->SetVector(-0.013, 1.086, 0.008); a[1] = mol.NewAtom(); a[1]->SetAtomicNum(1); a[1]->SetVector( 0.002, -0.004, 0.002); a[2] = mol.NewAtom(); a[2]->SetAtomicNum(9); a[2]->SetVector( 1.300, 1.570, -0.002); a[3] = mol.NewAtom(); a[3]->SetAtomicNum(35); a[3]->SetVector(-0.964, 1.737, -1.585); a[4] = mol.NewAtom(); a[4]->SetAtomicNum(17); a[4]->SetVector(-0.857, 1.667, 1.491); OpenBabel::OBBond* b; for (int i(1); i < 5; ++i) { b = mol.NewBond(); b->SetBegin(a[0]); b->SetEnd(a[i]); b->SetBondOrder(1); } switch(choice) { case 1: test01(&mol); test02(&mol); break; case 2: test03(&mol); test04(&mol); break; case 3: test05(&mol); test06(&mol); break; case 4: test07(&mol); test08(&mol); break; case 5: test09(&mol); break; default: std::cout << "Test number " << choice << " does not exist!\n"; return -1; } return 0; }
int main ( void ) /******************************************************************************/ /* Purpose: MAIN is the main program for RAND48_PRB. Discussion: RAND48_PRB calls sample problems for the RAND48 routines. Licensing: This code is distributed under the GNU LGPL license. Modified: 18 August 2008 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "RAND48_PRB\n" ); printf ( " C version:\n" ); printf ( " Test the RAND48 library.\n" ); test01 ( ); test02 ( ); test03 ( ); test04 ( ); test05 ( ); test06 ( ); test07 ( ); test08 ( ); test09 ( ); /* Terminate. */ printf ( "\n" ); printf ( "RAND48_PRB\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
void runCIMNameConstructorTests() { // valid constructor calls test01(); // UTF-8 related tests, circumvent if UTF-8 support disabled test02(); test03(); // invalid constructor calls test04(); test05(); test06(); }
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; }
int main ( void ) /******************************************************************************/ /* Purpose: MAIN is the main program for SUPER_BLAS1_S_PRB. Discussion: SUPER_BLAS1_S_PRB tests the BLAS1 single precision real routines. Modified: 29 March 2007 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "SUPER_BLAS1_S_PRB:\n" ); printf ( " C version\n" ); printf ( " Single precision real arithmetic.\n" ); printf ( " Test routines in the SUPER_BLAS library,\n" ); printf ( " the Level 1 Basic Linear Algebra Subprograms.\n" ); test01 ( ); test02 ( ); test03 ( ); test04 ( ); test05 ( ); test06 ( ); test07 ( ); test08 ( ); test09 ( ); test11 ( ); printf ( "\n" ); printf ( "SUPER_BLAS1_S_PRB:\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
int main ( void ) /******************************************************************************/ /* Purpose: MAIN is the main program for TEST_MIN_PRB. Discussion: TEST_MIN_PRB calls the TEST_MIN tests. Licensing: This code is distributed under the GNU LGPL license. Modified: 03 February 2012 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "TEST_MIN_PRB\n" ); printf ( " C version\n" ); printf ( " Test the TEST_MIN library.\n" ); test01 ( ); test02 ( ); test03 ( ); test04 ( ); test05 ( ); test06 ( ); /* Terminate. */ printf ( "\n" ); printf ( "TEST_MIN_PRB\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
int main ( ) /******************************************************************************/ /* Purpose: MAIN is the main program for FEM_BASIS_PRB. Discussion: FEM_BASIS_PRB tests the FEM_BASIS library. Licensing: This code is distributed under the GNU LGPL license. Modified: 26 June 2013 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "FEM_BASIS_PRB:\n" ); printf ( " C version.\n" ); printf ( " Test the FEM_BASIS library.\n" ); test01 ( ); test02 ( ); test03 ( ); test04 ( ); test05 ( ); test06 ( ); test07 ( ); test08 ( ); /* Terminate. */ printf ( "\n" ); printf ( "FEM_BASIS_PRB:\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
int main ( void ) /******************************************************************************/ /* Purpose: MAIN is the main program for SUPER_BLAS1_S_PRB. Discussion: SUPER_BLAS1_S_PRB tests the SUPER_BLAS library. Modified: 29 March 2007 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "SUPER_BLAS1_S_PRB:\n" ); printf ( " C version\n" ); printf ( " Single precision real arithmetic.\n" ); printf ( " Test the SUPER_BLAS library.\n" ); test01 ( ); test02 ( ); test03 ( ); test04 ( ); test05 ( ); test06 ( ); test07 ( ); test08 ( ); test09 ( ); test11 ( ); /* Terminate. */ printf ( "\n" ); printf ( "SUPER_BLAS1_S_PRB:\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
int main ( ) /******************************************************************************/ /* Purpose: COMPLEX_NUMBERS is a program which demonstrates the use of complex numbers. Licensing: This code is distributed under the GNU LGPL license. Modified: 06 November 2010 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "COMPLEX_NUMBERS\n" ); printf ( " C version\n" ); printf ( " Demonstrate complex number usage.\n" ); /* Single precision complex numbers: "complex". */ test01 ( ); test02 ( ); test03 ( ); /* Double precision complex numbers: "double complex". */ test04 ( ); test05 ( ); test06 ( ); /* Terminate. */ printf ( "\n" ); printf ( "COMPLEX_NUMBERS\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
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);} }
int main ( ) /******************************************************************************/ /* Purpose: MAIN is the main program for QR_SOLVE_PRB. Discussion: QR_SOLVE_PRB tests the QR_SOLVE library. Licensing: This code is distributed under the GNU LGPL license. Modified: 04 October 2012 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "QR_SOLVE_PRB\n" ); printf ( " C version\n" ); printf ( " Test the QR_SOLVE library.\n" ); printf ( " QR_SOLVE needs the R8LIB library.\n" ); printf ( " This test also needs the TEST_LS library.\n" ); test01 ( ); test02 ( ); test03 ( ); test04 ( ); /* Terminate. */ printf ( "\n" ); printf ( "QR_SOLVE_PRB\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
int main ( ) /******************************************************************************/ /* Purpose: GEOMPACK_PRB tests routines from the GEOMPACK library. Licensing: This code is distributed under the GNU LGPL license. Modified: 23 October 2012 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "GEOMPACK_PRB\n" ); printf ( " C version\n" ); printf ( " Test the GEOMPACK library.\n" ); test005 ( ); test01 ( ); test02 ( ); test03 ( ); test05 ( ); test06 ( ); test07 ( ); test08 ( ); /* Terminate. */ printf ( "\n" ); printf ( "GEOMPACK_PRB\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
int main ( void ) /******************************************************************************/ /* Purpose: MAIN is the main program for OWENS_PRB. Discussion: OWENS_PRB calls the OWENS routines. Licensing: This code is distributed under the GNU LGPL license. Modified: 23 November 2010 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "OWENS_PRB:\n" ); printf ( " C version\n" ); printf ( " Test the OWENS library.\n" ); test01 ( ); test02 ( ); test03 ( ); test04 ( ); /* Terminate. */ printf ( "\n" ); printf ( "OWENS_PRB:\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
int main ( ) /******************************************************************************/ /* Purpose: MAIN is the main program for HERMITE_TEST_INT_PRB. Discussion: HERMITE_TEST_INT_PRB tests the HERMITE_TEST_INT library. Licensing: This code is distributed under the GNU LGPL license. Modified: 11 September 2012 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "HERMITE_TEST_INT_PRB\n" ); printf ( " C version\n" ); printf ( " Test the HERMITE_TEST_INT library.\n" ); test01 ( ); test02 ( ); test03 ( ); test04 ( ); test05 ( ); test06 ( ); /* Terminate. */ printf ( "\n" ); printf ( "HERMITE_TEST_INT_PRB\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
int main ( ) /******************************************************************************/ /* Purpose: MAIN is the main program for BERNSTEIN_POLYNOMIAL_PRB. Discussion: BERNSTEIN_POLYNOMIAL_PRB tests the BERNSTEIN_POLYNOMIAL library. Licensing: This code is distributed under the GNU LGPL license. Modified: 13 May 2013 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "BERNSTEIN_POLYNOMIAL_PRB\n" ); printf ( " C version\n" ); printf ( " Test the BERNSTEIN_POLYNOMIAL library.\n" ); test01 ( ); test02 ( ); test03 ( ); test04 ( ); test05 ( ); test06 ( ); /* Terminate. */ printf ( "\n" ); printf ( "BERNSTEIN_POLYNOMIAL_PRB\n" ); printf ( " Normal end of execution.\n" ); printf ( " \n" ); timestamp ( ); return 0; }
int main ( void ) /******************************************************************************/ /* Purpose: MAIN is the main program for SUPER_BLAS1_Z_PRB. Discussion: SUPER_BLAS1_Z_PRB tests the SUPER_BLAS library. Modified: 01 April 2007 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "SUPER_BLAS1_Z_PRB:\n" ); printf ( " Z version\n" ); printf ( " Double precision complex arithmetic,\n" ); printf ( " Test the SUPER_BLAS library.\n" ); test03 ( ); test04 ( ); test05 ( ); test08 ( ); test15 ( ); test16 ( ); test17 ( ); /* Terminate. */ printf ( "\n" ); printf ( "SUPER_BLAS1_Z_PRB:\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
int main ( ) /******************************************************************************/ /* Purpose: MAIN is the main program for BISECTION_RC_PRB. Discussion: BISECTION_RC_PRB tests the BISECTION_RC library. Licensing: This code is distributed under the GNU LGPL license. Modified: 17 January 2015 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "BISECTION_RC_PRB:\n" ); printf ( " C version.\n" ); printf ( " Test the BISECTION_RC library.\n" ); test01 ( ); test02 ( ); test03 ( ); test04 ( ); test05 ( ); /* Terminate. */ printf ( "\n" ); printf ( "BISECTION_RC_PRB:\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }
int main ( ) /******************************************************************************/ /* Purpose: MAIN is the main program for PIECEWISE_LINEAR_PRODUCT_INTEGRAL_PRB. Discussion: PIECEWISE_LINEAR_PRODUCT_INTEGRAL_PRB tests the PIECEWISE_LINEAR_PRODUCT_INTEGRAL library. Licensing: This code is distributed under the GNU LGPL license. Modified: 04 July 2013 Author: John Burkardt */ { timestamp ( ); printf ( "\n" ); printf ( "PIECEWISE_LINEAR_PRODUCT_INTEGRAL_PRB\n" ); printf ( " C version\n" ); printf ( " Test the PIECEWISE_LINEAR_PRODUCT_INTEGRAL_INTEGRAL library.\n" ); test01 ( ); test02 ( ); test03 ( ); test04 ( ); /* Terminate. */ printf ( "\n" ); printf ( "PIECEWISE_LINEAR_PRODUCT_INTEGRAL_PRB\n" ); printf ( " Normal end of execution.\n" ); printf ( "\n" ); timestamp ( ); return 0; }