Home
last modified time | relevance | path

Searched refs:CPPUNIT_CHECK (Results 1 – 25 of 54) sorted by relevance

123

/ndk/tests/device/test-gnustl-full/unit/
Dcmath_test.cpp48 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 …]
Dcstring_test.cpp41 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 …]
Dreference_wrapper_test.cpp31 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 …]
Dtype_traits_test.cpp266 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()
425CPPUNIT_CHECK( are_both_pointer_type(int_const_volatile_pointer, int_const_volatile_pointer) == 1 … in both_pointer_type()
[all …]
Dctype_facets_test.cpp177 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 …]
Dswap_test.cpp105 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 …]
Dnum_put_get_test.cpp89 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 …]
Dstring_test.cpp189 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 …]
Dlimits_test.cpp275 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 …]
Diostream_test.cpp84 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()
Dlist_test.cpp299 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 …]
Dioiter_test.cpp90 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()
Dfstream_test.cpp299CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(6) ); in tellp()
300 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(6) ); in tellp()
307CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(9) ); in tellp()
308 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(9) ); in tellp()
339CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(expe… in tellp()
340 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(expected_pos) ); in tellp()
350 CPPUNIT_CHECK( ftell( f ) == expected_pos ); in tellp()
358CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(10) … in tellp()
359 CPPUNIT_CHECK( o.tellp() == ofstream::pos_type(10) ); in tellp()
407 CPPUNIT_CHECK( chars_read == 11 ); in seek()
[all …]
/ndk/tests/device/test-stlport/unit/
Dcmath_test.cpp48 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 …]
Dcstring_test.cpp41 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 …]
Dreference_wrapper_test.cpp31 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 …]
Dtype_traits_test.cpp266 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()
425CPPUNIT_CHECK( are_both_pointer_type(int_const_volatile_pointer, int_const_volatile_pointer) == 1 … in both_pointer_type()
[all …]
Dctype_facets_test.cpp177 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 …]
Dswap_test.cpp105 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 …]
Dnum_put_get_test.cpp89 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 …]
Dstring_test.cpp189 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 …]
Dlimits_test.cpp275 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()
283 CPPUNIT_CHECK(test_integral_limits(wchar_t())); in test()
285 CPPUNIT_CHECK(test_signed_integral_limits(short())); in test()
287 CPPUNIT_CHECK(test_unsigned_integral_limits(unsigned_short())); in test()
288 CPPUNIT_CHECK(test_signed_integral_limits(int())); in test()
290 CPPUNIT_CHECK(test_unsigned_integral_limits(unsigned_int())); in test()
291 CPPUNIT_CHECK(test_signed_integral_limits(long())); in test()
[all …]
Diostream_test.cpp84 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()
Dlist_test.cpp299 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 …]
Dioiter_test.cpp90 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()

123