Home
last modified time | relevance | path

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

12

/reactos/sdk/lib/3rdparty/stlport/test/unit/
H A Dcmath_test.cpp64 CPPUNIT_CHECK( div_res.quot == 1 ); in import_checks()
65 CPPUNIT_CHECK( div_res.rem == 1 ); in import_checks()
67 CPPUNIT_CHECK( ldiv_res.quot == 1l ); in import_checks()
68 CPPUNIT_CHECK( ldiv_res.rem == 1l ); in import_checks()
70 CPPUNIT_CHECK( ldiv_res.quot == 1l ); in import_checks()
71 CPPUNIT_CHECK( ldiv_res.rem == 1l ); in import_checks()
78 CPPUNIT_CHECK( are_equals(std::ceil(1.5), 2.0) ); in import_checks()
80 CPPUNIT_CHECK( are_equals(std::sqrt(4.0), 2.0) ); in import_checks()
91 CPPUNIT_CHECK( are_equals(std::exp(0.0), 1.0) ); in import_checks()
96 CPPUNIT_CHECK( are_equals(double_val, 100.0) ); in import_checks()
[all …]
H A Dcstring_test.cpp41 CPPUNIT_CHECK( bar == 0 ); in import_checks()
43 CPPUNIT_CHECK( std::memchr("foo", 'o', 3) != 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()
56 CPPUNIT_CHECK( std::strchr(foo, 'o') != NULL ); in import_checks()
57 CPPUNIT_CHECK( std::strcmp("foo1", "foo2") < 0 ); in import_checks()
59 CPPUNIT_CHECK( std::strcspn("foo", "o") == 1 ); in import_checks()
60 CPPUNIT_CHECK( std::strlen("foo") == 3 ); in import_checks()
67 CPPUNIT_CHECK( std::strspn(foofoo, "aofz") == 6 ); in import_checks()
[all …]
H A 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()
559 CPPUNIT_CHECK( is_POD_type(int_pointer) == 1 ); in is_POD()
563 CPPUNIT_CHECK( is_POD_type(any_pointer) == 1 ); in is_POD()
564 CPPUNIT_CHECK( is_POD_type(any) == 0 ); in is_POD()
565 CPPUNIT_CHECK( is_POD_type(any_pointer) == 1 ); in is_POD()
566 CPPUNIT_CHECK( is_POD_type(any_pod) == 1 ); in is_POD()
567 CPPUNIT_CHECK( is_POD_type(string()) == 0 ); in is_POD()
[all …]
H A Dctype_facets_test.cpp225 CPPUNIT_CHECK( res != rend ); in _ctype_facet_w()
226 CPPUNIT_CHECK( *res == L'a' ); in _ctype_facet_w()
229 CPPUNIT_CHECK( res != rend ); in _ctype_facet_w()
230 CPPUNIT_CHECK( *res == L'A' ); in _ctype_facet_w()
233 CPPUNIT_CHECK( res != rend ); in _ctype_facet_w()
234 CPPUNIT_CHECK( *res == L'.' ); in _ctype_facet_w()
245 CPPUNIT_CHECK( res != rend ); in _ctype_facet_w()
246 CPPUNIT_CHECK( *res == L'1' ); in _ctype_facet_w()
249 CPPUNIT_CHECK( res != rend ); in _ctype_facet_w()
250 CPPUNIT_CHECK( *res == L'1' ); in _ctype_facet_w()
[all …]
H A Dstring_test.cpp189 CPPUNIT_CHECK( s == "message" ); in trivial_char_compare()
190 CPPUNIT_CHECK( "message" == s ); in trivial_char_compare()
572 CPPUNIT_CHECK( s == "2123456" ); in replace()
707 CPPUNIT_CHECK( p == 0 ); in bogus_edge_find()
713 CPPUNIT_CHECK( p == 1 ); in bogus_edge_find()
738 CPPUNIT_CHECK( p == 0 ); in bogus_edge_find()
744 CPPUNIT_CHECK( p == 1 ); in bogus_edge_find()
1066 CPPUNIT_CHECK( result == ' ' ); in template_expression()
1424 CPPUNIT_CHECK( s[23] == '4' ); in concat24()
1425 CPPUNIT_CHECK( s[24] == '1' ); in concat24()
[all …]
H A Dnum_put_get_test.cpp112 CPPUNIT_CHECK( in_val_d != F(0.0) ); in check_get_float()
154 CPPUNIT_CHECK( str.str() != "inf" ); in check_get_float()
259 CPPUNIT_CHECK( in_val_d == 1 ); in check_get_float()
270 CPPUNIT_CHECK( in_val_d == 1 ); in check_get_float()
1011 CPPUNIT_CHECK( s.str() == "0" ); in inhex()
1016 CPPUNIT_CHECK( s.str() == "ff" ); in inhex()
1031 CPPUNIT_CHECK( s.str() == "0" ); in inhex()
1147 CPPUNIT_CHECK( !istr.fail() ); in fix_float_long()
1168 CPPUNIT_CHECK( !istr.fail() ); in fix_float_long()
1193 CPPUNIT_CHECK( !istr.fail() ); in fix_float_long()
[all …]
H A 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()
150 CPPUNIT_CHECK( v1.size() == 2 ); in swap_container_spec()
151 CPPUNIT_CHECK( v2.size() == 3 ); in swap_container_spec()
158 CPPUNIT_CHECK( v1[0].v == 10 ); in swap_container_spec()
159 CPPUNIT_CHECK( v1[1].v == 11 ); in swap_container_spec()
160 CPPUNIT_CHECK( v1[2].v == 12 ); in swap_container_spec()
162 CPPUNIT_CHECK( v2[0].v == -1 ); in swap_container_spec()
[all …]
H A 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()
70 CPPUNIT_CHECK( r1.get() == 1 ); in cref()
74 CPPUNIT_CHECK( r1.get() == 2 ); in cref()
78 CPPUNIT_CHECK( r1.get() == 2 ); in cref()
[all …]
H A Dlimits_test.cpp275 CPPUNIT_CHECK(test_integral_limits_base(bool())); in test()
276 CPPUNIT_CHECK(test_integral_limits(char())); in test()
282 CPPUNIT_CHECK(test_integral_limits(wchar_t())); in test()
287 CPPUNIT_CHECK(test_signed_integral_limits(int())); in test()
290 CPPUNIT_CHECK(test_signed_integral_limits(long())); in test()
300 CPPUNIT_CHECK(test_float_limits(float())); in test()
301 CPPUNIT_CHECK(test_float_limits(double())); in test()
304 CPPUNIT_CHECK(test_float_limits(long_double())); in test()
311 CPPUNIT_CHECK(test_qnan(float())); in qnan_test()
312 CPPUNIT_CHECK(test_qnan(double())); in qnan_test()
[all …]
H A 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()
H A 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 …]
H A Dfstream_test.cpp389 CPPUNIT_CHECK( b1[9] == '0' ); in seek()
808 CPPUNIT_CHECK( nullStream ); in null_stream()
813 CPPUNIT_CHECK( nullStream ); in null_stream()
818 CPPUNIT_CHECK( nullStream ); in null_stream()
823 CPPUNIT_CHECK( nullStream ); in null_stream()
828 CPPUNIT_CHECK( nullStream ); in null_stream()
833 CPPUNIT_CHECK( nullStream ); in null_stream()
838 CPPUNIT_CHECK( nullStream ); in null_stream()
843 CPPUNIT_CHECK( nullStream ); in null_stream()
848 CPPUNIT_CHECK( nullStream ); in null_stream()
[all …]
H A Dslist_test.cpp357 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 …]
H A Dmoney_facets_test.cpp544 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()
552 CPPUNIT_CHECK( cfacet_byname.grouping() == cfacet.grouping() ); in moneypunct_by_name()
573 CPPUNIT_CHECK( cp_bn.field[0] == cp.field[0] ); in moneypunct_by_name()
574 CPPUNIT_CHECK( cp_bn.field[1] == cp.field[1] ); in moneypunct_by_name()
575 CPPUNIT_CHECK( cp_bn.field[2] == cp.field[2] ); in moneypunct_by_name()
576 CPPUNIT_CHECK( cp_bn.field[3] == cp.field[3] ); in moneypunct_by_name()
[all …]
H A 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()
H A Dsstream_test.cpp409 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()
451CPPUNIT_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()
460 CPPUNIT_CHECK( o.tellp() == stringstream::pos_type(6) ); in tellp()
468 CPPUNIT_CHECK( o.tellp() == stringstream::pos_type(9) ); in tellp()
483 CPPUNIT_CHECK( to_string<int>(-1) == "-1" ); in negative()
[all …]
H A Diter_test.cpp153 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()
H A Dnum_facets_test.cpp242 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()
H A Dshared_ptr_test.cpp37 CPPUNIT_CHECK( p == q ); in shared_from_this()
38 CPPUNIT_CHECK( !(p < q) && !(q < p) ); // p and q share ownership in shared_from_this()
H A Dpair_test.cpp42 CPPUNIT_CHECK( PAIR_ARRAY[i].first == 0 ); in init()
43 CPPUNIT_CHECK( PAIR_ARRAY[i].second == "0" ); in init()
H A Ddeque_test.cpp93 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()
H A Dvector_test.cpp452 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()
H A Dcodecvt_test.cpp503 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()
H A Dbind_test.cpp147 CPPUNIT_CHECK( array[0].v() == 12 ); in bind_memfn()
H A Dhash_test.cpp204 CPPUNIT_CHECK( h.size() == m.size() ); in check_keys()
243 CPPUNIT_CHECK( collection.size() == h.size() ); in check_keys()

12