/external/stlport/test/unit/ |
H A D | cstring_test.cpp | 41 CPPUNIT_CHECK( bar == 0 ); 43 CPPUNIT_CHECK( std::memchr("foo", 'o', 3) != NULL ); 44 CPPUNIT_CHECK( std::memcmp("foo1", "foo2", 3) == 0 ); 46 CPPUNIT_CHECK( std::memcpy(buf1, buf2, 0) != NULL ); 47 CPPUNIT_CHECK( std::memmove(buf1, buf2, 0) != NULL ); 48 CPPUNIT_CHECK( std::memset(buf1, 0, 1) != NULL ); 52 CPPUNIT_CHECK( std::strcoll("foo", "foo") == 0 ); 53 CPPUNIT_CHECK( std::strerror(0) != NULL ); 55 CPPUNIT_CHECK( std::strcat((char*)buf, foo) == (char*)buf ); // buf <- foo 56 CPPUNIT_CHECK( st [all...] |
H A D | cmath_test.cpp | 48 CPPUNIT_CHECK( are_equals(std::abs(int_val), -int_val) ); 49 CPPUNIT_CHECK( are_equals(std::abs(long_val), -long_val) ); 50 CPPUNIT_CHECK( are_equals(std::labs(long_val), -long_val) ); 51 CPPUNIT_CHECK( are_equals(std::abs(float_val), -float_val) ); 52 CPPUNIT_CHECK( are_equals(std::abs(double_val), -double_val) ); 54 CPPUNIT_CHECK( are_equals(std::abs(long_double_val), -long_double_val) ); 57 CPPUNIT_CHECK( are_equals(std::fabs(float_val), -float_val) ); 58 CPPUNIT_CHECK( are_equals(std::fabs(double_val), -double_val) ); 60 CPPUNIT_CHECK( are_equals(std::fabs(long_double_val), -long_double_val) ); 64 CPPUNIT_CHECK( div_re [all...] |
H A D | reference_wrapper_test.cpp | 31 CPPUNIT_CHECK( (::boost::is_convertible<rr_type, int&>::value) ); 32 CPPUNIT_CHECK( (::boost::is_same<rr_type::type, int>::value) ); 39 CPPUNIT_CHECK( r1.get() == 1 ); 43 CPPUNIT_CHECK( r1.get() == 2 ); 47 CPPUNIT_CHECK( r1.get() == 2 ); 51 CPPUNIT_CHECK( r1.get() == 4 ); 55 CPPUNIT_CHECK( j == 5 ); 62 CPPUNIT_CHECK( (::boost::is_convertible<crr_type, const int&>::value) ); 63 CPPUNIT_CHECK( (::boost::is_same<crr_type::type, const int>::value) ); 70 CPPUNIT_CHECK( r [all...] |
H A D | iostream_test.cpp | 84 CPPUNIT_CHECK( cin.rdbuf()->in_avail() == 0 ); 85 CPPUNIT_CHECK( cout.rdbuf()->in_avail() == -1 ); 86 CPPUNIT_CHECK( clog.rdbuf()->in_avail() == -1 ); 87 CPPUNIT_CHECK( cerr.rdbuf()->in_avail() == -1 ); 90 CPPUNIT_CHECK( wcin.rdbuf()->in_avail() == 0 ); 91 CPPUNIT_CHECK( wcout.rdbuf()->in_avail() == 0 ); 92 CPPUNIT_CHECK( wclog.rdbuf()->in_avail() == 0 ); 93 CPPUNIT_CHECK( wcerr.rdbuf()->in_avail() == 0 );
|
H A D | swap_test.cpp | 105 CPPUNIT_CHECK( v1.size() == 2 ); 106 CPPUNIT_CHECK( v2.size() == 3 ); 110 CPPUNIT_CHECK( v1.size() == 3 ); 111 CPPUNIT_CHECK( v2.size() == 2 ); 114 CPPUNIT_CHECK( v1.front().v == 1 || v1.front().v == 2 ); 115 CPPUNIT_CHECK( v1.back().v == 1 || v1.back().v == 2 ); 116 CPPUNIT_CHECK( v2.front().v == 1 || v2.front().v == 2 ); 117 CPPUNIT_CHECK( v2.back().v == 1 || v2.back().v == 2 ); 150 CPPUNIT_CHECK( v1.size() == 2 ); 151 CPPUNIT_CHECK( v [all...] |
H A D | type_traits_test.cpp | 266 CPPUNIT_CHECK( is_convertible(any, b) == 0 ); 267 CPPUNIT_CHECK( is_convertible(d, b) == 1 ); 268 CPPUNIT_CHECK( is_convertible(cd, b) == 1 ); 270 //CPPUNIT_CHECK( is_cv_convertible(d, b) == 1 ); 271 //CPPUNIT_CHECK( is_cv_convertible(cd, b) == 0 ); 274 //CPPUNIT_CHECK( is_convertible(pd, pb) == 1 ); 275 //CPPUNIT_CHECK( is_convertible(pcd, pb) == 1 ); 277 CPPUNIT_CHECK( is_cv_convertible(pd, pb) == 1 ); 278 CPPUNIT_CHECK( is_cv_convertible(pcd, pb) == 0 ); 421 CPPUNIT_CHECK( are_both_pointer_typ [all...] |
H A D | ctype_facets_test.cpp | 177 CPPUNIT_CHECK( wct.is(ctype_base::digit, L'0') ); 178 CPPUNIT_CHECK( wct.is(ctype_base::upper, L'A') ); 179 CPPUNIT_CHECK( wct.is(ctype_base::lower, L'a') ); 180 CPPUNIT_CHECK( wct.is(ctype_base::alpha, L'A') ); 181 CPPUNIT_CHECK( wct.is(ctype_base::space, L' ') ); 182 CPPUNIT_CHECK( !wct.is(ctype_base::space, L'2') ); 183 CPPUNIT_CHECK( wct.is(ctype_base::punct, L'.') ); 184 CPPUNIT_CHECK( wct.is(ctype_base::xdigit, L'a') ); 193 CPPUNIT_CHECK( (res[0] & ctype_base::print) != 0 ); 194 CPPUNIT_CHECK( (re [all...] |
H A D | string_test.cpp | 189 CPPUNIT_CHECK( s == "message" ); 190 CPPUNIT_CHECK( "message" == s ); 437 CPPUNIT_CHECK( s[s.size()] == '\0' ); 442 CPPUNIT_CHECK( s.at(s.size()) == '\0' ); 572 CPPUNIT_CHECK( s == "2123456" ); 700 /* CPPUNIT_CHECK( p == string::npos ); */ 701 CPPUNIT_CHECK( p == 0 ); // bogus result, isn't it? 707 CPPUNIT_CHECK( p == 0 ); 713 CPPUNIT_CHECK( p == 1 ); 719 CPPUNIT_CHECK( [all...] |
H A D | limits_test.cpp | 275 CPPUNIT_CHECK(test_integral_limits_base(bool())); 276 CPPUNIT_CHECK(test_integral_limits(char())); 278 CPPUNIT_CHECK(test_signed_integral_limits(signed_char())); 280 CPPUNIT_CHECK(test_unsigned_integral_limits(unsigned_char())); 282 CPPUNIT_CHECK(test_integral_limits(wchar_t())); 284 CPPUNIT_CHECK(test_signed_integral_limits(short())); 286 CPPUNIT_CHECK(test_unsigned_integral_limits(unsigned_short())); 287 CPPUNIT_CHECK(test_signed_integral_limits(int())); 289 CPPUNIT_CHECK(test_unsigned_integral_limits(unsigned_int())); 290 CPPUNIT_CHECK(test_signed_integral_limit [all...] |
H A D | ioiter_test.cpp | 90 CPPUNIT_CHECK( v.size() == 10 ); 92 CPPUNIT_CHECK( v[0] == '1' ); 93 CPPUNIT_CHECK( v[9] == '0' ); 103 CPPUNIT_CHECK( v.size() == 10 ); 105 CPPUNIT_CHECK( v[0] == '1' ); 106 CPPUNIT_CHECK( v[9] == '0' );
|
H A D | num_put_get_test.cpp | 89 CPPUNIT_CHECK( in_val_d == in_val_d ); 90 CPPUNIT_CHECK( in_val_d != limits::infinity() ); 100 CPPUNIT_CHECK( in_val_d == in_val_d ); 101 CPPUNIT_CHECK( in_val_d != -limits::infinity() ); 111 CPPUNIT_CHECK( in_val_d == in_val_d ); 112 CPPUNIT_CHECK( in_val_d != F(0.0) ); 122 CPPUNIT_CHECK( in_val_d == in_val_d ); 123 CPPUNIT_CHECK( in_val_d == limits::infinity() ); 133 CPPUNIT_CHECK( in_val_d == in_val_d ); 134 CPPUNIT_CHECK( in_val_ [all...] |
H A D | shared_ptr_test.cpp | 37 CPPUNIT_CHECK( p == q ); 38 CPPUNIT_CHECK( !(p < q) && !(q < p) ); // p and q share ownership
|
H A D | pair_test.cpp | 42 CPPUNIT_CHECK( PAIR_ARRAY[i].first == 0 ); 43 CPPUNIT_CHECK( PAIR_ARRAY[i].second == "0" );
|
H A D | list_test.cpp | 299 CPPUNIT_CHECK( stack1.ok() ); 300 CPPUNIT_CHECK( stack2.ok() ); 321 CPPUNIT_CHECK( stack1.ok() ); 322 CPPUNIT_CHECK( stack2.ok() ); 343 CPPUNIT_CHECK( stack1.ok() ); 344 CPPUNIT_CHECK( stack2.ok() ); 355 CPPUNIT_CHECK( stack1.ok() ); 356 CPPUNIT_CHECK( stack2.ok() ); 367 CPPUNIT_CHECK( stack1.ok() ); 368 CPPUNIT_CHECK( stack [all...] |
H A D | slist_test.cpp | 357 CPPUNIT_CHECK( stack1.ok() ); 358 CPPUNIT_CHECK( stack2.ok() ); 378 CPPUNIT_CHECK( stack1.ok() ); 379 CPPUNIT_CHECK( stack2.ok() ); 399 CPPUNIT_CHECK( stack1.ok() ); 400 CPPUNIT_CHECK( stack2.ok() ); 412 CPPUNIT_CHECK( stack1.ok() ); 413 CPPUNIT_CHECK( stack2.ok() ); 425 CPPUNIT_CHECK( stack1.ok() ); 426 CPPUNIT_CHECK( stack [all...] |
H A D | money_facets_test.cpp | 544 CPPUNIT_CHECK( cp_bn.field[0] == cp.field[0] ); 545 CPPUNIT_CHECK( cp_bn.field[1] == cp.field[1] ); 546 CPPUNIT_CHECK( cp_bn.field[2] == cp.field[2] ); 547 CPPUNIT_CHECK( cp_bn.field[3] == cp.field[3] ); 549 CPPUNIT_CHECK( cfacet_byname.frac_digits() == cfacet.frac_digits() ); 551 CPPUNIT_CHECK( cfacet_byname.decimal_point() == cfacet.decimal_point() ); 552 CPPUNIT_CHECK( cfacet_byname.grouping() == cfacet.grouping() ); 554 CPPUNIT_CHECK( cfacet_byname.thousands_sep() == cfacet.thousands_sep() ); 555 CPPUNIT_CHECK( cfacet_byname.positive_sign() == cfacet.positive_sign() ); 556 CPPUNIT_CHECK( cfacet_bynam [all...] |
H A D | fstream_test.cpp | 281 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(6) ); 282 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(6) ); 289 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(9) ); 290 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(9) ); 321 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(expected_pos) ); 322 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(expected_pos) ); 331 CPPUNIT_CHECK( ftell( f ) == expected_pos ); 339 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(10) ); 340 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(10) ); 388 CPPUNIT_CHECK( chars_rea [all...] |
H A D | sstream_test.cpp | 409 CPPUNIT_CHECK( s.tellp() == stringstream::pos_type(7) ); 410 CPPUNIT_CHECK( s.str() == "1234567" ); 413 CPPUNIT_CHECK( s.str() == "X234567" ); 416 CPPUNIT_CHECK( s.str() == "Y234567" ); 440 /* CPPUNIT_CHECK( str == "2" ); --- according ISO/IEC 14882 2003 */ 441 CPPUNIT_CHECK( str == "12" ); 451 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == stringstream::pos_type(6) ); 452 CPPUNIT_CHECK( o.tellp() == stringstream::pos_type(6) ); 459 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == stringstream::pos_type(6) ); 460 CPPUNIT_CHECK( [all...] |
H A D | iter_test.cpp | 153 CPPUNIT_CHECK( vvints.front() == lvref ); 154 CPPUNIT_CHECK( lvints.front() == vvref ); 166 CPPUNIT_CHECK( pvvint == &lvints.front().front() ); 167 CPPUNIT_CHECK( plvint == &vvints.front().front() );
|
H A D | num_facets_test.cpp | 242 CPPUNIT_CHECK( cfacet_byname.decimal_point() == cfacet.decimal_point() ); 243 CPPUNIT_CHECK( cfacet_byname.grouping() == cfacet.grouping() ); 245 CPPUNIT_CHECK( cfacet_byname.thousands_sep() == cfacet.thousands_sep() ); 247 CPPUNIT_CHECK( cfacet_byname.truename() == cfacet.truename() ); 248 CPPUNIT_CHECK( cfacet_byname.falsename() == cfacet.falsename() );
|
H A D | deque_test.cpp | 93 CPPUNIT_CHECK( *dit == 3 ); 100 CPPUNIT_CHECK( *dit == 4 ); 107 CPPUNIT_CHECK( *dit == 5 ); 114 CPPUNIT_CHECK( *dit == 6 );
|
H A D | bind_test.cpp | 147 CPPUNIT_CHECK( array[0].v() == 12 );
|
H A D | exception_test.cpp | 75 CPPUNIT_CHECK( strcmp( err.what(), "message" ) == 0 );
|
H A D | vector_test.cpp | 452 CPPUNIT_CHECK( v[4] == 5 ); 453 CPPUNIT_CHECK( v[0] == 1 ); 454 CPPUNIT_CHECK( v[1] == 2 );
|
/external/stlport/test/unit/cppunit/ |
H A D | cppunit_mini.h | 195 #define CPPUNIT_CHECK(X) \ macro 197 Base::error("CPPUNIT_CHECK", #X, __FILE__, __LINE__); \
|