/reactos/sdk/lib/3rdparty/stlport/test/unit/ |
H A D | perm_test.cpp | 47 CPPUNIT_ASSERT(v1[0]==2); in prevprm0() 48 CPPUNIT_ASSERT(v1[1]==1); in prevprm0() 49 CPPUNIT_ASSERT(v1[2]==0); in prevprm0() 57 CPPUNIT_ASSERT(v1[0]==2); in prevprm1() 58 CPPUNIT_ASSERT(v1[1]==1); in prevprm1() 59 CPPUNIT_ASSERT(v1[2]==0); in prevprm1() 61 CPPUNIT_ASSERT(v1[0]==2); in prevprm1() 62 CPPUNIT_ASSERT(v1[1]==0); in prevprm1() 63 CPPUNIT_ASSERT(v1[2]==1); in prevprm1() 65 CPPUNIT_ASSERT(v1[0]==1); in prevprm1() [all …]
|
H A D | rm_cp_test.cpp | 91 CPPUNIT_ASSERT(v1[0]==0); in replif1() 92 CPPUNIT_ASSERT(v1[1]==42); in replif1() 93 CPPUNIT_ASSERT(v1[2]==2); in replif1() 94 CPPUNIT_ASSERT(v1[3]==42); in replif1() 95 CPPUNIT_ASSERT(v1[4]==4); in replif1() 96 CPPUNIT_ASSERT(v1[5]==0); in replif1() 98 CPPUNIT_ASSERT(v1[7]==2); in replif1() 100 CPPUNIT_ASSERT(v1[9]==4); in replif1() 141 CPPUNIT_ASSERT(v1[0]==0); in replace1() 142 CPPUNIT_ASSERT(v1[1]==1); in replace1() [all …]
|
H A D | rotate_test.cpp | 54 CPPUNIT_ASSERT(v1[0]==1); in rotate1() 55 CPPUNIT_ASSERT(v1[1]==2); in rotate1() 56 CPPUNIT_ASSERT(v1[2]==3); in rotate1() 57 CPPUNIT_ASSERT(v1[3]==4); in rotate1() 58 CPPUNIT_ASSERT(v1[4]==5); in rotate1() 59 CPPUNIT_ASSERT(v1[5]==6); in rotate1() 60 CPPUNIT_ASSERT(v1[6]==7); in rotate1() 61 CPPUNIT_ASSERT(v1[7]==8); in rotate1() 62 CPPUNIT_ASSERT(v1[8]==9); in rotate1() 63 CPPUNIT_ASSERT(v1[9]==0); in rotate1() [all …]
|
H A D | sstream_test.cpp | 151 CPPUNIT_ASSERT( i == 1 ); in io() 180 CPPUNIT_ASSERT( i == 9 ); in err() 184 CPPUNIT_ASSERT( i == 9 ); in err() 333 CPPUNIT_ASSERT( in ); in streambuf_output() 341 CPPUNIT_ASSERT( in ); in streambuf_output() 347 CPPUNIT_ASSERT( in ); in streambuf_output() 352 CPPUNIT_ASSERT( in ); in streambuf_output() 360 CPPUNIT_ASSERT( in ); in streambuf_output() 368 CPPUNIT_ASSERT( in ); in streambuf_output() 375 CPPUNIT_ASSERT( in ); in streambuf_output() [all …]
|
H A D | mvctor_traits_test.cpp | 105 CPPUNIT_ASSERT( MovableStruct::nb_destruct_call == 7 ); in move_traits_vec() 108 CPPUNIT_ASSERT( MovableStruct::nb_destruct_call == 7 ); in move_traits_vec() 111 CPPUNIT_ASSERT( MovableStruct::nb_destruct_call == 14 ); in move_traits_vec() 113 CPPUNIT_ASSERT( MovableStruct::nb_assignment_call == 0 ); in move_traits_vec() 131 CPPUNIT_ASSERT( MovableStruct::nb_destruct_call == 0 ); in move_traits_vec() 145 CPPUNIT_ASSERT( MovableStruct::nb_destruct_call == 4 ); in move_traits_vec() 153 CPPUNIT_ASSERT( MovableStruct::nb_destruct_call == 8 ); in move_traits_vec() 156 CPPUNIT_ASSERT( MovableStruct::nb_destruct_call == 2 ); in move_traits_vec() 164 CPPUNIT_ASSERT( MovableStruct::nb_destruct_call == 2 ); in move_traits_vec() 172 CPPUNIT_ASSERT( MovableStruct::nb_destruct_call == 4 ); in move_traits_vec() [all …]
|
H A D | vector_test.cpp | 82 CPPUNIT_ASSERT( v1[0] == 42 ); in vec_test_1() 185 CPPUNIT_ASSERT( v[0] == 1 ); in vec_test_5() 186 CPPUNIT_ASSERT( v[1] == 4 ); in vec_test_5() 187 CPPUNIT_ASSERT( v[2] == 9 ); in vec_test_5() 199 CPPUNIT_ASSERT( v[0] == 1 ); in vec_test_6() 200 CPPUNIT_ASSERT( v[1] == 4 ); in vec_test_6() 201 CPPUNIT_ASSERT( v[2] == 9 ); in vec_test_6() 207 CPPUNIT_ASSERT( *vit == 4 ); in vec_test_6() 210 CPPUNIT_ASSERT( v[0] == 4 ); in vec_test_6() 211 CPPUNIT_ASSERT( v[1] == 9 ); in vec_test_6() [all …]
|
H A D | mvctor_declaration_test.cpp | 173 CPPUNIT_ASSERT( is_movable(string()) ); in movable_declaration() 180 CPPUNIT_ASSERT( is_movable(wstring()) ); in movable_declaration() 192 CPPUNIT_ASSERT( is_movable(crope()) ); in movable_declaration() 194 CPPUNIT_ASSERT( is_move_complete(crope()) ); in movable_declaration() 199 CPPUNIT_ASSERT( is_movable(wrope()) ); in movable_declaration() 201 CPPUNIT_ASSERT( is_move_complete(wrope()) ); in movable_declaration() 223 CPPUNIT_ASSERT( is_movable(deque<char>()) ); in movable_declaration() 235 CPPUNIT_ASSERT( is_movable(list<char>()) ); in movable_declaration() 248 CPPUNIT_ASSERT( is_movable(slist<char>()) ); in movable_declaration() 261 CPPUNIT_ASSERT( is_movable(queue<char>()) ); in movable_declaration() [all …]
|
H A D | partial_test.cpp | 85 CPPUNIT_ASSERT(v1[0]==2); in parsrt1() 86 CPPUNIT_ASSERT(v1[1]==3); in parsrt1() 87 CPPUNIT_ASSERT(v1[2]==3); in parsrt1() 88 CPPUNIT_ASSERT(v1[3]==4); in parsrt1() 89 CPPUNIT_ASSERT(v1[4]==5); in parsrt1() 90 CPPUNIT_ASSERT(v1[5]==8); in parsrt1() 91 CPPUNIT_ASSERT(v1[6]==8); in parsrt1() 92 CPPUNIT_ASSERT(v1[7]==7); in parsrt1() 93 CPPUNIT_ASSERT(v1[8]==6); in parsrt1() 94 CPPUNIT_ASSERT(v1[9]==5); in parsrt1() [all …]
|
H A D | set_test.cpp | 65 CPPUNIT_ASSERT (count == 1); in set1() 99 CPPUNIT_ASSERT( s.empty() ); in erase() 102 CPPUNIT_ASSERT(nb == 0); in erase() 109 CPPUNIT_ASSERT( *i == 0 ); in insert() 137 CPPUNIT_ASSERT( *sit == 3 ); in bounds() 141 CPPUNIT_ASSERT( *sit == 6 ); in bounds() 160 CPPUNIT_ASSERT( *scit == 3 ); in bounds() 164 CPPUNIT_ASSERT( *scit == 6 ); in bounds() 178 CPPUNIT_ASSERT( *scit == 3 ); in bounds() 182 CPPUNIT_ASSERT( *scit == 6 ); in bounds() [all …]
|
H A D | map_test.cpp | 57 CPPUNIT_ASSERT( m['x']== 20 ); in map1() 59 CPPUNIT_ASSERT( m['x']== 10 ); in map1() 60 CPPUNIT_ASSERT( m['z']== 0 ); in map1() 65 CPPUNIT_ASSERT( p.second ); in map1() 81 CPPUNIT_ASSERT(m.count('X')==0); in mmap1() 84 CPPUNIT_ASSERT(m.count('X')==1); in mmap1() 95 CPPUNIT_ASSERT(*i == p); in mmap1() 105 CPPUNIT_ASSERT(i == m.end()); in mmap1() 108 CPPUNIT_ASSERT(count==2); in mmap1() 135 CPPUNIT_ASSERT((*i).first==3); in mmap2() [all …]
|
H A D | deque_test.cpp | 58 CPPUNIT_ASSERT( d[0] == 1 ); in deque1() 59 CPPUNIT_ASSERT( d[1] == 4 ); in deque1() 60 CPPUNIT_ASSERT( d[2] == 9 ); in deque1() 61 CPPUNIT_ASSERT( d[3] == 16 ); in deque1() 66 CPPUNIT_ASSERT( d[0] == 4 ); in deque1() 67 CPPUNIT_ASSERT( d[1] == 9 ); in deque1() 68 CPPUNIT_ASSERT( d[2] == 25 ); in deque1() 95 CPPUNIT_ASSERT( d[0] == 3 ); in insert() 102 CPPUNIT_ASSERT( d[1] == 4 ); in insert() 170 CPPUNIT_ASSERT(false); in at() [all …]
|
H A D | fstream_test.cpp | 101 CPPUNIT_ASSERT (f.good()); in output() 169 CPPUNIT_ASSERT( i == 1 ); in io() 385 CPPUNIT_ASSERT( s ); in seek() 411 CPPUNIT_ASSERT( s ); in seek() 462 CPPUNIT_ASSERT( s ); in seek() 464 CPPUNIT_ASSERT( s ); in seek() 521 CPPUNIT_ASSERT( in ); in streambuf_output() 529 CPPUNIT_ASSERT( in ); in streambuf_output() 534 CPPUNIT_ASSERT( in ); in streambuf_output() 539 CPPUNIT_ASSERT( in ); in streambuf_output() [all …]
|
H A D | list_test.cpp | 106 CPPUNIT_ASSERT(*i++==1); in list2() 107 CPPUNIT_ASSERT(*i++==4); in list2() 108 CPPUNIT_ASSERT(*i++==9); in list2() 109 CPPUNIT_ASSERT(*i++==16); in list2() 121 CPPUNIT_ASSERT(*i++=='s'); in list3() 157 CPPUNIT_ASSERT(*i++==1); in list4() 158 CPPUNIT_ASSERT(*i++==2); in list4() 159 CPPUNIT_ASSERT(*i++==3); in list4() 160 CPPUNIT_ASSERT(*i++==4); in list4() 161 CPPUNIT_ASSERT(*i++==6); in list4() [all …]
|
H A D | partition_test.cpp | 81 CPPUNIT_ASSERT(v1[0]==5); in stblptn1() 82 CPPUNIT_ASSERT(v1[1]==5); in stblptn1() 83 CPPUNIT_ASSERT(v1[2]==2); in stblptn1() 84 CPPUNIT_ASSERT(v1[3]==10); in stblptn1() 85 CPPUNIT_ASSERT(v1[4]==0); in stblptn1() 86 CPPUNIT_ASSERT(v1[5]==5); in stblptn1() 87 CPPUNIT_ASSERT(v1[6]==0); in stblptn1() 88 CPPUNIT_ASSERT(v1[7]==0); in stblptn1() 119 CPPUNIT_ASSERT(v1[0]==6); in ptition1() 120 CPPUNIT_ASSERT(v1[1]==3); in ptition1() [all …]
|
H A D | slist_test.cpp | 131 CPPUNIT_ASSERT( *slit == 1); in erase() 135 CPPUNIT_ASSERT( *slit == 3 ); in erase() 140 CPPUNIT_ASSERT( *slit == 2 ); in erase() 144 CPPUNIT_ASSERT( *slit == 3 ); in erase() 211 CPPUNIT_ASSERT( sl1 == sl2 ); in splice() 216 CPPUNIT_ASSERT( sl1 == sl2 ); in splice() 224 CPPUNIT_ASSERT( *slit == 0 ); in splice() 226 CPPUNIT_ASSERT( sl1 == sl2 ); in splice() 237 CPPUNIT_ASSERT( *slit == 0 ); in splice() 253 CPPUNIT_ASSERT( i < 5 ); in splice() [all …]
|
H A D | sort_test.cpp | 59 CPPUNIT_ASSERT(numbers[0]==-10); in stblsrt1() 60 CPPUNIT_ASSERT(numbers[1]==1); in stblsrt1() 61 CPPUNIT_ASSERT(numbers[2]==11); in stblsrt1() 62 CPPUNIT_ASSERT(numbers[3]==19); in stblsrt1() 63 CPPUNIT_ASSERT(numbers[4]==42); in stblsrt1() 64 CPPUNIT_ASSERT(numbers[5]==50); in stblsrt1() 120 CPPUNIT_ASSERT(numbers[1]==1); in sort1() 121 CPPUNIT_ASSERT(numbers[2]==11); in sort1() 136 CPPUNIT_ASSERT(numbers[4]==1); in sort2() 203 CPPUNIT_ASSERT( false ); in bad_predicate_detected() [all …]
|
H A D | merge_test.cpp | 43 CPPUNIT_ASSERT(result[0]==-5); in merge0() 44 CPPUNIT_ASSERT(result[1]==1); in merge0() 45 CPPUNIT_ASSERT(result[2]==6); in merge0() 46 CPPUNIT_ASSERT(result[3]==13); in merge0() 47 CPPUNIT_ASSERT(result[4]==25); in merge0() 48 CPPUNIT_ASSERT(result[5]==26); in merge0() 49 CPPUNIT_ASSERT(result[6]==36); in merge0() 64 CPPUNIT_ASSERT(result[0]==0); in merge1() 65 CPPUNIT_ASSERT(result[1]==1); in merge1() 66 CPPUNIT_ASSERT(result[2]==2); in merge1() [all …]
|
H A D | unique_test.cpp | 40 CPPUNIT_ASSERT(numbers[0]==0); in unique1() 41 CPPUNIT_ASSERT(numbers[1]==1); in unique1() 42 CPPUNIT_ASSERT(numbers[2]==2); in unique1() 43 CPPUNIT_ASSERT(numbers[3]==3); in unique1() 44 CPPUNIT_ASSERT(numbers[4]==4); in unique1() 45 CPPUNIT_ASSERT(numbers[5]==2); in unique1() 46 CPPUNIT_ASSERT(numbers[6]==3); in unique1() 47 CPPUNIT_ASSERT(numbers[7]==4); in unique1() 76 CPPUNIT_ASSERT(result[0]==0); in uniqcpy1() 77 CPPUNIT_ASSERT(result[1]==1); in uniqcpy1() [all …]
|
H A D | alg_test.cpp | 49 CPPUNIT_ASSERT( i == 4 ); in min_max() 51 CPPUNIT_ASSERT( c == 'z' ); in min_max() 55 CPPUNIT_ASSERT( c == 'z' ); in min_max() 57 CPPUNIT_ASSERT( i == 4 ); in min_max() 66 CPPUNIT_ASSERT(n==3); in count_test() 70 CPPUNIT_ASSERT(n==3); in count_test() 82 CPPUNIT_ASSERT(n==3); in count_test() 86 CPPUNIT_ASSERT(n==3); in count_test() 144 CPPUNIT_ASSERT( *lit == 3 ); in search_n_test() 177 CPPUNIT_ASSERT( *lit > 2 ); in search_n_test() [all …]
|
H A D | nthelm_test.cpp | 54 CPPUNIT_ASSERT(v1[0]==1); in nthelem1() 55 CPPUNIT_ASSERT(v1[1]==1); in nthelem1() 56 CPPUNIT_ASSERT(v1[2]==4); in nthelem1() 57 CPPUNIT_ASSERT(v1[3]==2); in nthelem1() 58 CPPUNIT_ASSERT(v1[4]==5); in nthelem1() 59 CPPUNIT_ASSERT(v1[5]==5); in nthelem1() 60 CPPUNIT_ASSERT(v1[6]==6); in nthelem1() 61 CPPUNIT_ASSERT(v1[7]==7); in nthelem1() 62 CPPUNIT_ASSERT(v1[8]==8); in nthelem1() 63 CPPUNIT_ASSERT(v1[9]==6); in nthelem1() [all …]
|
H A D | type_traits_test.cpp | 294 CPPUNIT_ASSERT( is_integer(bool()) == 1 ); in integer() 295 CPPUNIT_ASSERT( is_integer(char()) == 1 ); in integer() 303 CPPUNIT_ASSERT( is_integer(short()) == 1 ); in integer() 306 CPPUNIT_ASSERT( is_integer(int()) == 1 ); in integer() 309 CPPUNIT_ASSERT( is_integer(long()) == 1 ); in integer() 318 CPPUNIT_ASSERT( is_integer(float()) == 0 ); in integer() 324 CPPUNIT_ASSERT( is_integer(any) == 0 ); in integer() 340 CPPUNIT_ASSERT( is_rational(bool()) == 0 ); in rational() 341 CPPUNIT_ASSERT( is_rational(char()) == 0 ); in rational() 352 CPPUNIT_ASSERT( is_rational(int()) == 0 ); in rational() [all …]
|
H A D | num_put_get_test.cpp | 88 CPPUNIT_ASSERT(str.eof()); in check_get_float() 99 CPPUNIT_ASSERT(str.eof()); in check_get_float() 110 CPPUNIT_ASSERT(str.eof()); in check_get_float() 121 CPPUNIT_ASSERT(str.eof()); in check_get_float() 132 CPPUNIT_ASSERT(str.eof()); in check_get_float() 143 CPPUNIT_ASSERT(str.eof()); in check_get_float() 167 CPPUNIT_ASSERT(str.eof()); in check_get_float() 788 CPPUNIT_ASSERT(istr.eof()); in num_get_float() 795 CPPUNIT_ASSERT(istr.eof()); in num_get_float() 808 CPPUNIT_ASSERT(istr.eof()); in num_get_float() [all …]
|
H A D | hash_test.cpp | 95 CPPUNIT_ASSERT(p.second); in hmap1() 98 CPPUNIT_ASSERT(!p.second); in hmap1() 106 CPPUNIT_ASSERT( ite == cite ); in hmap1() 108 CPPUNIT_ASSERT( cite == ite ); in hmap1() 137 CPPUNIT_ASSERT(i==m.end()); in hmmap1() 140 CPPUNIT_ASSERT(count==2); in hmmap1() 145 CPPUNIT_ASSERT( ite == cite ); in hmmap1() 147 CPPUNIT_ASSERT( cite == ite ); in hmmap1() 294 CPPUNIT_ASSERT( *i == '*' ); in hmset1() 303 CPPUNIT_ASSERT( p.second ); in hset2() [all …]
|
H A D | string_test.cpp | 329 CPPUNIT_ASSERT( str == c_str ); in erase() 350 CPPUNIT_ASSERT( str == c_str ); in erase() 352 CPPUNIT_ASSERT( str.empty() ); in erase() 355 CPPUNIT_ASSERT( str == c_str ); in erase() 372 CPPUNIT_ASSERT( str == "H" ); in erase() 446 CPPUNIT_ASSERT( true ); in null_char() 632 CPPUNIT_ASSERT( s[6] == '7' ); in resize() 633 CPPUNIT_ASSERT( s[7] == 0 ); in resize() 634 CPPUNIT_ASSERT( s[8] == 0 ); in resize() 635 CPPUNIT_ASSERT( s[9] == 0 ); in resize() [all …]
|
H A D | adj_test.cpp | 103 CPPUNIT_ASSERT(result[0]==0) in adjdiff1() 104 CPPUNIT_ASSERT(result[1]==1) in adjdiff1() 105 CPPUNIT_ASSERT(result[2]==3) in adjdiff1() 106 CPPUNIT_ASSERT(result[3]==5) in adjdiff1() 107 CPPUNIT_ASSERT(result[4]==7) in adjdiff1() 108 CPPUNIT_ASSERT(result[5]==9) in adjdiff1() 109 CPPUNIT_ASSERT(result[6]==11) in adjdiff1() 110 CPPUNIT_ASSERT(result[7]==13) in adjdiff1() 121 CPPUNIT_ASSERT(result[0]==1) in adjdiff2() 122 CPPUNIT_ASSERT(result[1]==2) in adjdiff2() [all …]
|