HomeSort by relevance Sort by last modified time
    Searched refs:CPPUNIT_CHECK (Results 1 - 25 of 81) sorted by null

1 2 3 4

  /external/stlport/test/unit/
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( std::strchr(foo, 'o') != NULL )
    [all...]
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_res.quot == 1 )
    [all...]
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( r1.get() == 1 )
    [all...]
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 );
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( v2.size() == 3 )
    [all...]
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_type(int_val, int_val) == 0 )
    [all...]
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( (res[0] & ctype_base::digit) != 0 )
    [all...]
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( p == string::npos )
    [all...]
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_limits(long()))
    [all...]
  /ndk/tests/device/test-gnustl-full/unit/
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( std::strchr(foo, 'o') != NULL )
    [all...]
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_res.quot == 1 )
    [all...]
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( r1.get() == 1 )
    [all...]
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 );
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( v2.size() == 3 )
    [all...]
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_type(int_val, int_val) == 0 )
    [all...]
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( (res[0] & ctype_base::digit) != 0 )
    [all...]
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( p == string::npos )
    [all...]
  /ndk/tests/device/test-stlport/unit/
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( std::strchr(foo, 'o') != NULL )
    [all...]
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_res.quot == 1 )
    [all...]
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( r1.get() == 1 )
    [all...]
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 );
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( v2.size() == 3 )
    [all...]
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_type(int_val, int_val) == 0 )
    [all...]
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( (res[0] & ctype_base::digit) != 0 )
    [all...]
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( p == string::npos )
    [all...]

Completed in 103 milliseconds

1 2 3 4