/external/stlport/test/unit/ |
D | cmath_test.cpp | 48 CPPUNIT_CHECK( are_equals(std::abs(int_val), -int_val) ); in import_checks() 49 CPPUNIT_CHECK( are_equals(std::abs(long_val), -long_val) ); in import_checks() 50 CPPUNIT_CHECK( are_equals(std::labs(long_val), -long_val) ); in import_checks() 51 CPPUNIT_CHECK( are_equals(std::abs(float_val), -float_val) ); in import_checks() 52 CPPUNIT_CHECK( are_equals(std::abs(double_val), -double_val) ); in import_checks() 54 CPPUNIT_CHECK( are_equals(std::abs(long_double_val), -long_double_val) ); in import_checks() 57 CPPUNIT_CHECK( are_equals(std::fabs(float_val), -float_val) ); in import_checks() 58 CPPUNIT_CHECK( are_equals(std::fabs(double_val), -double_val) ); in import_checks() 60 CPPUNIT_CHECK( are_equals(std::fabs(long_double_val), -long_double_val) ); in import_checks() 64 CPPUNIT_CHECK( div_res.quot == 1 ); in import_checks() [all …]
|
D | cstring_test.cpp | 41 CPPUNIT_CHECK( bar == 0 ); in import_checks() 43 CPPUNIT_CHECK( std::memchr("foo", 'o', 3) != NULL ); in import_checks() 44 CPPUNIT_CHECK( std::memcmp("foo1", "foo2", 3) == 0 ); in import_checks() 46 CPPUNIT_CHECK( std::memcpy(buf1, buf2, 0) != NULL ); in import_checks() 47 CPPUNIT_CHECK( std::memmove(buf1, buf2, 0) != NULL ); in import_checks() 48 CPPUNIT_CHECK( std::memset(buf1, 0, 1) != NULL ); in import_checks() 52 CPPUNIT_CHECK( std::strcoll("foo", "foo") == 0 ); in import_checks() 53 CPPUNIT_CHECK( std::strerror(0) != NULL ); in import_checks() 55 CPPUNIT_CHECK( std::strcat((char*)buf, foo) == (char*)buf ); // buf <- foo in import_checks() 56 CPPUNIT_CHECK( std::strchr(foo, 'o') != NULL ); in import_checks() [all …]
|
D | type_traits_test.cpp | 266 CPPUNIT_CHECK( is_convertible(any, b) == 0 ); in manips() 267 CPPUNIT_CHECK( is_convertible(d, b) == 1 ); in manips() 268 CPPUNIT_CHECK( is_convertible(cd, b) == 1 ); in manips() 277 CPPUNIT_CHECK( is_cv_convertible(pd, pb) == 1 ); in manips() 278 CPPUNIT_CHECK( is_cv_convertible(pcd, pb) == 0 ); in manips() 421 CPPUNIT_CHECK( are_both_pointer_type(int_val, int_val) == 0 ); in both_pointer_type() 422 CPPUNIT_CHECK( are_both_pointer_type(int_pointer, int_pointer) == 1 ); in both_pointer_type() 423 CPPUNIT_CHECK( are_both_pointer_type(int_const_pointer, int_const_pointer) == 1 ); in both_pointer_type() 424 CPPUNIT_CHECK( are_both_pointer_type(int_volatile_pointer, int_volatile_pointer) == 1 ); in both_pointer_type() 425 …CPPUNIT_CHECK( are_both_pointer_type(int_const_volatile_pointer, int_const_volatile_pointer) == 1 … in both_pointer_type() [all …]
|
D | ctype_facets_test.cpp | 177 CPPUNIT_CHECK( wct.is(ctype_base::digit, L'0') ); in _ctype_facet_w() 178 CPPUNIT_CHECK( wct.is(ctype_base::upper, L'A') ); in _ctype_facet_w() 179 CPPUNIT_CHECK( wct.is(ctype_base::lower, L'a') ); in _ctype_facet_w() 180 CPPUNIT_CHECK( wct.is(ctype_base::alpha, L'A') ); in _ctype_facet_w() 181 CPPUNIT_CHECK( wct.is(ctype_base::space, L' ') ); in _ctype_facet_w() 182 CPPUNIT_CHECK( !wct.is(ctype_base::space, L'2') ); in _ctype_facet_w() 183 CPPUNIT_CHECK( wct.is(ctype_base::punct, L'.') ); in _ctype_facet_w() 184 CPPUNIT_CHECK( wct.is(ctype_base::xdigit, L'a') ); in _ctype_facet_w() 193 CPPUNIT_CHECK( (res[0] & ctype_base::print) != 0 ); in _ctype_facet_w() 194 CPPUNIT_CHECK( (res[0] & ctype_base::digit) != 0 ); in _ctype_facet_w() [all …]
|
D | string_test.cpp | 189 CPPUNIT_CHECK( s == "message" ); in trivial_char_compare() 190 CPPUNIT_CHECK( "message" == s ); in trivial_char_compare() 437 CPPUNIT_CHECK( s[s.size()] == '\0' ); in null_char() 442 CPPUNIT_CHECK( s.at(s.size()) == '\0' ); in null_char() 572 CPPUNIT_CHECK( s == "2123456" ); in replace() 701 CPPUNIT_CHECK( p == 0 ); // bogus result, isn't it? in bogus_edge_find() 707 CPPUNIT_CHECK( p == 0 ); in bogus_edge_find() 713 CPPUNIT_CHECK( p == 1 ); in bogus_edge_find() 719 CPPUNIT_CHECK( p == string::npos ); in bogus_edge_find() 725 CPPUNIT_CHECK( p == 3 ); // bogus result, isn't it? in bogus_edge_find() [all …]
|
D | num_put_get_test.cpp | 89 CPPUNIT_CHECK( in_val_d == in_val_d ); in check_get_float() 90 CPPUNIT_CHECK( in_val_d != limits::infinity() ); in check_get_float() 100 CPPUNIT_CHECK( in_val_d == in_val_d ); in check_get_float() 101 CPPUNIT_CHECK( in_val_d != -limits::infinity() ); in check_get_float() 111 CPPUNIT_CHECK( in_val_d == in_val_d ); in check_get_float() 112 CPPUNIT_CHECK( in_val_d != F(0.0) ); in check_get_float() 122 CPPUNIT_CHECK( in_val_d == in_val_d ); in check_get_float() 123 CPPUNIT_CHECK( in_val_d == limits::infinity() ); in check_get_float() 133 CPPUNIT_CHECK( in_val_d == in_val_d ); in check_get_float() 134 CPPUNIT_CHECK( in_val_d == -limits::infinity() ); in check_get_float() [all …]
|
D | swap_test.cpp | 105 CPPUNIT_CHECK( v1.size() == 2 ); in swap_container_non_spec() 106 CPPUNIT_CHECK( v2.size() == 3 ); in swap_container_non_spec() 110 CPPUNIT_CHECK( v1.size() == 3 ); in swap_container_non_spec() 111 CPPUNIT_CHECK( v2.size() == 2 ); in swap_container_non_spec() 114 CPPUNIT_CHECK( v1.front().v == 1 || v1.front().v == 2 ); in swap_container_non_spec() 115 CPPUNIT_CHECK( v1.back().v == 1 || v1.back().v == 2 ); in swap_container_non_spec() 116 CPPUNIT_CHECK( v2.front().v == 1 || v2.front().v == 2 ); in swap_container_non_spec() 117 CPPUNIT_CHECK( v2.back().v == 1 || v2.back().v == 2 ); in swap_container_non_spec() 150 CPPUNIT_CHECK( v1.size() == 2 ); in swap_container_spec() 151 CPPUNIT_CHECK( v2.size() == 3 ); in swap_container_spec() [all …]
|
D | reference_wrapper_test.cpp | 31 CPPUNIT_CHECK( (::boost::is_convertible<rr_type, int&>::value) ); in ref() 32 CPPUNIT_CHECK( (::boost::is_same<rr_type::type, int>::value) ); in ref() 39 CPPUNIT_CHECK( r1.get() == 1 ); in ref() 43 CPPUNIT_CHECK( r1.get() == 2 ); in ref() 47 CPPUNIT_CHECK( r1.get() == 2 ); in ref() 51 CPPUNIT_CHECK( r1.get() == 4 ); in ref() 55 CPPUNIT_CHECK( j == 5 ); in ref() 62 CPPUNIT_CHECK( (::boost::is_convertible<crr_type, const int&>::value) ); in cref() 63 CPPUNIT_CHECK( (::boost::is_same<crr_type::type, const int>::value) ); in cref() 70 CPPUNIT_CHECK( r1.get() == 1 ); in cref() [all …]
|
D | limits_test.cpp | 275 CPPUNIT_CHECK(test_integral_limits_base(bool())); in test() 276 CPPUNIT_CHECK(test_integral_limits(char())); in test() 278 CPPUNIT_CHECK(test_signed_integral_limits(signed_char())); in test() 280 CPPUNIT_CHECK(test_unsigned_integral_limits(unsigned_char())); in test() 282 CPPUNIT_CHECK(test_integral_limits(wchar_t())); in test() 284 CPPUNIT_CHECK(test_signed_integral_limits(short())); in test() 286 CPPUNIT_CHECK(test_unsigned_integral_limits(unsigned_short())); in test() 287 CPPUNIT_CHECK(test_signed_integral_limits(int())); in test() 289 CPPUNIT_CHECK(test_unsigned_integral_limits(unsigned_int())); in test() 290 CPPUNIT_CHECK(test_signed_integral_limits(long())); in test() [all …]
|
D | list_test.cpp | 299 CPPUNIT_CHECK( stack1.ok() ); in allocator_with_state() 300 CPPUNIT_CHECK( stack2.ok() ); in allocator_with_state() 321 CPPUNIT_CHECK( stack1.ok() ); in allocator_with_state() 322 CPPUNIT_CHECK( stack2.ok() ); in allocator_with_state() 343 CPPUNIT_CHECK( stack1.ok() ); in allocator_with_state() 344 CPPUNIT_CHECK( stack2.ok() ); in allocator_with_state() 355 CPPUNIT_CHECK( stack1.ok() ); in allocator_with_state() 356 CPPUNIT_CHECK( stack2.ok() ); in allocator_with_state() 367 CPPUNIT_CHECK( stack1.ok() ); in allocator_with_state() 368 CPPUNIT_CHECK( stack2.ok() ); in allocator_with_state() [all …]
|
D | fstream_test.cpp | 281 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(6) ); in tellp() 282 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(6) ); in tellp() 289 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(9) ); in tellp() 290 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(9) ); in tellp() 321 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(expe… in tellp() 322 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(expected_pos) ); in tellp() 331 CPPUNIT_CHECK( ftell( f ) == expected_pos ); in tellp() 339 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(10) … in tellp() 340 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(10) ); in tellp() 388 CPPUNIT_CHECK( chars_read == 11 ); in seek() [all …]
|
D | iostream_test.cpp | 84 CPPUNIT_CHECK( cin.rdbuf()->in_avail() == 0 ); in in_avail() 85 CPPUNIT_CHECK( cout.rdbuf()->in_avail() == -1 ); in in_avail() 86 CPPUNIT_CHECK( clog.rdbuf()->in_avail() == -1 ); in in_avail() 87 CPPUNIT_CHECK( cerr.rdbuf()->in_avail() == -1 ); in in_avail() 90 CPPUNIT_CHECK( wcin.rdbuf()->in_avail() == 0 ); in in_avail() 91 CPPUNIT_CHECK( wcout.rdbuf()->in_avail() == 0 ); in in_avail() 92 CPPUNIT_CHECK( wclog.rdbuf()->in_avail() == 0 ); in in_avail() 93 CPPUNIT_CHECK( wcerr.rdbuf()->in_avail() == 0 ); in in_avail()
|
D | slist_test.cpp | 357 CPPUNIT_CHECK( stack1.ok() ); in allocator_with_state() 358 CPPUNIT_CHECK( stack2.ok() ); in allocator_with_state() 378 CPPUNIT_CHECK( stack1.ok() ); in allocator_with_state() 379 CPPUNIT_CHECK( stack2.ok() ); in allocator_with_state() 399 CPPUNIT_CHECK( stack1.ok() ); in allocator_with_state() 400 CPPUNIT_CHECK( stack2.ok() ); in allocator_with_state() 412 CPPUNIT_CHECK( stack1.ok() ); in allocator_with_state() 413 CPPUNIT_CHECK( stack2.ok() ); in allocator_with_state() 425 CPPUNIT_CHECK( stack1.ok() ); in allocator_with_state() 426 CPPUNIT_CHECK( stack2.ok() ); in allocator_with_state() [all …]
|
D | money_facets_test.cpp | 544 CPPUNIT_CHECK( cp_bn.field[0] == cp.field[0] ); in moneypunct_by_name() 545 CPPUNIT_CHECK( cp_bn.field[1] == cp.field[1] ); in moneypunct_by_name() 546 CPPUNIT_CHECK( cp_bn.field[2] == cp.field[2] ); in moneypunct_by_name() 547 CPPUNIT_CHECK( cp_bn.field[3] == cp.field[3] ); in moneypunct_by_name() 549 CPPUNIT_CHECK( cfacet_byname.frac_digits() == cfacet.frac_digits() ); in moneypunct_by_name() 551 CPPUNIT_CHECK( cfacet_byname.decimal_point() == cfacet.decimal_point() ); in moneypunct_by_name() 552 CPPUNIT_CHECK( cfacet_byname.grouping() == cfacet.grouping() ); in moneypunct_by_name() 554 CPPUNIT_CHECK( cfacet_byname.thousands_sep() == cfacet.thousands_sep() ); in moneypunct_by_name() 555 CPPUNIT_CHECK( cfacet_byname.positive_sign() == cfacet.positive_sign() ); in moneypunct_by_name() 556 CPPUNIT_CHECK( cfacet_byname.negative_sign() == cfacet.negative_sign() ); in moneypunct_by_name() [all …]
|
D | sstream_test.cpp | 409 CPPUNIT_CHECK( s.tellp() == stringstream::pos_type(7) ); in seekp() 410 CPPUNIT_CHECK( s.str() == "1234567" ); in seekp() 413 CPPUNIT_CHECK( s.str() == "X234567" ); in seekp() 416 CPPUNIT_CHECK( s.str() == "Y234567" ); in seekp() 441 CPPUNIT_CHECK( str == "12" ); in seek_gp() 451 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == stringstream::pos_type(… in tellp() 452 CPPUNIT_CHECK( o.tellp() == stringstream::pos_type(6) ); in tellp() 459 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == stringstream::pos_type(… in tellp() 460 CPPUNIT_CHECK( o.tellp() == stringstream::pos_type(6) ); in tellp() 467 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == stringstream::pos_type(… in tellp() [all …]
|
D | ioiter_test.cpp | 90 CPPUNIT_CHECK( v.size() == 10 ); in assign_test() 92 CPPUNIT_CHECK( v[0] == '1' ); in assign_test() 93 CPPUNIT_CHECK( v[9] == '0' ); in assign_test() 103 CPPUNIT_CHECK( v.size() == 10 ); in assign2_test() 105 CPPUNIT_CHECK( v[0] == '1' ); in assign2_test() 106 CPPUNIT_CHECK( v[9] == '0' ); in assign2_test()
|
D | iter_test.cpp | 153 CPPUNIT_CHECK( vvints.front() == lvref ); in iterswp3() 154 CPPUNIT_CHECK( lvints.front() == vvref ); in iterswp3() 166 CPPUNIT_CHECK( pvvint == &lvints.front().front() ); in iterswp3() 167 CPPUNIT_CHECK( plvint == &vvints.front().front() ); in iterswp3()
|
D | num_facets_test.cpp | 242 CPPUNIT_CHECK( cfacet_byname.decimal_point() == cfacet.decimal_point() ); in numpunct_by_name() 243 CPPUNIT_CHECK( cfacet_byname.grouping() == cfacet.grouping() ); in numpunct_by_name() 245 CPPUNIT_CHECK( cfacet_byname.thousands_sep() == cfacet.thousands_sep() ); in numpunct_by_name() 247 CPPUNIT_CHECK( cfacet_byname.truename() == cfacet.truename() ); in numpunct_by_name() 248 CPPUNIT_CHECK( cfacet_byname.falsename() == cfacet.falsename() ); in numpunct_by_name()
|
D | shared_ptr_test.cpp | 37 CPPUNIT_CHECK( p == q ); in shared_from_this() 38 CPPUNIT_CHECK( !(p < q) && !(q < p) ); // p and q share ownership in shared_from_this()
|
D | pair_test.cpp | 42 CPPUNIT_CHECK( PAIR_ARRAY[i].first == 0 ); in init() 43 CPPUNIT_CHECK( PAIR_ARRAY[i].second == "0" ); in init()
|
D | deque_test.cpp | 93 CPPUNIT_CHECK( *dit == 3 ); in insert() 100 CPPUNIT_CHECK( *dit == 4 ); in insert() 107 CPPUNIT_CHECK( *dit == 5 ); in insert() 114 CPPUNIT_CHECK( *dit == 6 ); in insert()
|
D | vector_test.cpp | 452 CPPUNIT_CHECK( v[4] == 5 ); in assign_check() 453 CPPUNIT_CHECK( v[0] == 1 ); in assign_check() 454 CPPUNIT_CHECK( v[1] == 2 ); in assign_check()
|
D | codecvt_test.cpp | 503 CPPUNIT_CHECK( ch != (int)WEOF ); in imbue_while_reading() 558 CPPUNIT_CHECK( string(buf, to_next) == cp936_str ); in special_encodings() 633 CPPUNIT_CHECK( string(buf, to_next) == utf8_str ); in special_encodings()
|
D | hash_test.cpp | 204 CPPUNIT_CHECK( h.size() == m.size() ); in check_keys() 243 CPPUNIT_CHECK( collection.size() == h.size() ); in check_keys()
|
D | bind_test.cpp | 147 CPPUNIT_CHECK( array[0].v() == 12 ); in bind_memfn()
|