Changeset 565 for library/tests
- Timestamp:
- 08/19/09 16:54:24 (15 years ago)
- Location:
- library/tests
- Files:
-
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/shared_ptr_test.cpp
r499 r565 1 1 #include "shared_ptr.h" 2 2 #include "UnitTest++.h" 3 #include <stdexcept> 3 4 #include <vector> 4 5 … … 51 52 CHECK_EQUAL ( 2, v[2]->get_x() ); 52 53 } 54 55 TEST ( test_shared_ptr_error ) { 56 bdm::shared_ptr<Foo> empty; 57 try { 58 Foo x(*empty); 59 CHECK ( false ); 60 } catch ( std::runtime_error &exc ) { 61 CHECK ( exc.what() ); 62 } 63 } -
library/tests/test_kalman.cpp
r527 r565 21 21 bool xxx = fin.seek ( "d" ); 22 22 if ( !xxx ) { 23 it_error ( "testKF.it not found" );23 bdm_error ( "testKF.it not found" ); 24 24 } 25 25 fin >> Dt; -
library/tests/test_kalman_QR.cpp
r488 r565 22 22 bool xxx = fin.seek ( "d" ); 23 23 if ( !xxx ) { 24 it_error ( "testKF.it not found" );24 bdm_error ( "testKF.it not found" ); 25 25 } 26 26 fin >> Dt; -
library/tests/test_kalman_QRexh.cpp
r477 r565 23 23 24 24 if ( !xxx ) { 25 it_error ( "testKF.it not found" );25 bdm_error ( "testKF.it not found" ); 26 26 } 27 27 -
library/tests/testsuite.cpp
r496 r565 2 2 #include "TestReporterStdout.h" 3 3 #include "UnitTest++.h" 4 #include "bdmerror.h" 4 5 #include "itpp_ext.h" 6 #include <string.h> 5 7 6 8 using namespace itpp; … … 9 11 10 12 bool is_selected_test( const UnitTest::Test *test ) { 11 it_assert_debug ( test, "NULL test" );13 bdm_assert_debug ( test, "NULL test" ); 12 14 13 15 if (!selected_tests.length()) { … … 17 19 for (int i = 0; i < selected_tests.length(); ++i) { 18 20 const char *n = test->m_details.testName; 19 it_assert_debug ( n, "NULL test name" );21 bdm_assert_debug ( n, "NULL test name" ); 20 22 const char *sname = selected_tests(i); 21 it_assert_debug ( sname, "NULL selected test name" );23 bdm_assert_debug ( sname, "NULL selected test name" ); 22 24 if ( !strcmp ( n, sname ) ) { 23 25 return true;