/external/stlport/test/unit/ |
D | rm_cp_test.cpp | 59 CPPUNIT_ASSERT(numbers[0]==5); in reverse1() 60 CPPUNIT_ASSERT(numbers[1]==4); in reverse1() 61 CPPUNIT_ASSERT(numbers[2]==3); in reverse1() 62 CPPUNIT_ASSERT(numbers[3]==2); in reverse1() 63 CPPUNIT_ASSERT(numbers[4]==1); in reverse1() 64 CPPUNIT_ASSERT(numbers[5]==0); in reverse1() 74 CPPUNIT_ASSERT(result[0]==5); in revcopy1() 75 CPPUNIT_ASSERT(result[1]==4); in revcopy1() 76 CPPUNIT_ASSERT(result[2]==3); in revcopy1() 77 CPPUNIT_ASSERT(result[3]==2); in revcopy1() [all …]
|
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 …]
|
D | rotate_test.cpp | 41 CPPUNIT_ASSERT(numbers[0]==3); in rotate0() 42 CPPUNIT_ASSERT(numbers[1]==4); in rotate0() 43 CPPUNIT_ASSERT(numbers[2]==5); in rotate0() 44 CPPUNIT_ASSERT(numbers[3]==0); in rotate0() 45 CPPUNIT_ASSERT(numbers[4]==1); in rotate0() 46 CPPUNIT_ASSERT(numbers[5]==2); in rotate0() 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() [all …]
|
D | sstream_test.cpp | 72 CPPUNIT_ASSERT( s.good() ); in output() 73 CPPUNIT_ASSERT( s.str() == "1\n2\nabcd\nghk lm\nabcd ef" ); in output() 82 CPPUNIT_ASSERT( s.good() ); in output() 83 CPPUNIT_ASSERT( s.str() == "0" ); in output() 89 CPPUNIT_ASSERT( s.good() ); in output() 90 CPPUNIT_ASSERT( s.str() == "0" ); in output() 100 CPPUNIT_ASSERT( s.good() ); in input() 101 CPPUNIT_ASSERT( i == 1 ); in input() 104 CPPUNIT_ASSERT( s.good() ); in input() 105 CPPUNIT_ASSERT( d == 2.0 ); in input() [all …]
|
D | mvctor_traits_test.cpp | 97 CPPUNIT_ASSERT( MovableStruct::nb_dft_construct_call == 4 ); in move_traits_vec() 100 CPPUNIT_ASSERT( MovableStruct::nb_cpy_construct_call == 4 ); in move_traits_vec() 101 CPPUNIT_ASSERT( MovableStruct::nb_mv_construct_call == 3 ); in move_traits_vec() 103 CPPUNIT_ASSERT( MovableStruct::nb_cpy_construct_call == 7 ); in move_traits_vec() 105 CPPUNIT_ASSERT( MovableStruct::nb_destruct_call == 7 ); in move_traits_vec() 107 CPPUNIT_ASSERT( MovableStruct::nb_cpy_construct_call == 7 ); in move_traits_vec() 108 CPPUNIT_ASSERT( MovableStruct::nb_destruct_call == 7 ); in move_traits_vec() 110 CPPUNIT_ASSERT( MovableStruct::nb_cpy_construct_call == 14 ); 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() [all …]
|
D | vector_test.cpp | 73 CPPUNIT_ASSERT( v1.empty() == true ); in vec_test_1() 74 CPPUNIT_ASSERT( v1.size() == 0 ); in vec_test_1() 80 CPPUNIT_ASSERT( v1.size() == 1 ); in vec_test_1() 82 CPPUNIT_ASSERT( v1[0] == 42 ); in vec_test_1() 88 CPPUNIT_ASSERT( (*it).empty() ); in vec_test_1() 89 CPPUNIT_ASSERT( (*it).size() == 0 ); in vec_test_1() 90 CPPUNIT_ASSERT( (*it).capacity() == 0 ); in vec_test_1() 91 CPPUNIT_ASSERT( (*it).begin() == (*it).end() ); in vec_test_1() 104 CPPUNIT_ASSERT( v1.size() == 2 ); in vec_test_2() 105 CPPUNIT_ASSERT( v1[0] == 32.1 ); in vec_test_2() [all …]
|
D | partial_test.cpp | 68 CPPUNIT_ASSERT(numbers[0]==1); in parsrt0() 69 CPPUNIT_ASSERT(numbers[1]==2); in parsrt0() 70 CPPUNIT_ASSERT(numbers[2]==3); in parsrt0() 71 CPPUNIT_ASSERT(numbers[3]==5); in parsrt0() 72 CPPUNIT_ASSERT(numbers[4]==4); in parsrt0() 73 CPPUNIT_ASSERT(numbers[5]==6); in parsrt0() 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() [all …]
|
D | mvctor_declaration_test.cpp | 173 CPPUNIT_ASSERT( is_movable(string()) ); in movable_declaration() 175 CPPUNIT_ASSERT( is_move_complete(string()) ); in movable_declaration() 177 CPPUNIT_ASSERT( !is_move_complete(string()) ); in movable_declaration() 180 CPPUNIT_ASSERT( is_movable(wstring()) ); in movable_declaration() 182 CPPUNIT_ASSERT( is_move_complete(wstring()) ); in movable_declaration() 184 CPPUNIT_ASSERT( !is_move_complete(wstring()) ); in movable_declaration() 192 CPPUNIT_ASSERT( is_movable(crope()) ); in movable_declaration() 194 CPPUNIT_ASSERT( is_move_complete(crope()) ); in movable_declaration() 196 CPPUNIT_ASSERT( !is_move_complete(crope()) ); in movable_declaration() 199 CPPUNIT_ASSERT( is_movable(wrope()) ); in movable_declaration() [all …]
|
D | set_test.cpp | 59 CPPUNIT_ASSERT (s.count(42) == 0); in set1() 61 CPPUNIT_ASSERT (s.count(42) == 1); in set1() 63 CPPUNIT_ASSERT (s.count(42) == 1); in set1() 65 CPPUNIT_ASSERT (count == 1); in set1() 73 CPPUNIT_ASSERT (p.second == true); in set2() 75 CPPUNIT_ASSERT (p.second == false); in set2() 79 CPPUNIT_ASSERT (distance(s.begin(), s.end()) == 5); in set2() 83 CPPUNIT_ASSERT (distance(s2.begin(), s2.end()) == 5); in set2() 84 CPPUNIT_ASSERT (distance(s.begin(), s.end()) == 0); in set2() 89 CPPUNIT_ASSERT (distance(s.begin(), s.end()) == 0); in set2() [all …]
|
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() 73 CPPUNIT_ASSERT( (dit - cdit) == 0 ); in deque1() 74 CPPUNIT_ASSERT( (cdit - dit) == 0 ); in deque1() 75 CPPUNIT_ASSERT( (dit - dit) == 0 ); in deque1() [all …]
|
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() 62 CPPUNIT_ASSERT( m.count('z') == 1 ); in map1() 65 CPPUNIT_ASSERT( p.second ); in map1() 66 CPPUNIT_ASSERT( p.first != m.end() ); in map1() 67 CPPUNIT_ASSERT( (*p.first).first == 'c' ); in map1() 68 CPPUNIT_ASSERT( (*p.first).second == 100 ); in map1() 71 CPPUNIT_ASSERT( !p.second ); // already existing pair in map1() 72 CPPUNIT_ASSERT( p.first != m.end() ); in map1() [all …]
|
D | partition_test.cpp | 61 CPPUNIT_ASSERT(numbers[0]==5); in stblptn0() 62 CPPUNIT_ASSERT(numbers[1]==6); in stblptn0() 63 CPPUNIT_ASSERT(numbers[2]==-2); in stblptn0() 64 CPPUNIT_ASSERT(numbers[3]==10); in stblptn0() 65 CPPUNIT_ASSERT(numbers[4]==11); in stblptn0() 66 CPPUNIT_ASSERT(numbers[5]==20); in stblptn0() 69 CPPUNIT_ASSERT( nb_pred_calls == sizeof(numbers) / sizeof(numbers[0]) ); in stblptn0() 81 CPPUNIT_ASSERT(v1[0]==5); in stblptn1() 82 CPPUNIT_ASSERT(v1[1]==5); in stblptn1() 83 CPPUNIT_ASSERT(v1[2]==2); in stblptn1() [all …]
|
D | list_test.cpp | 68 CPPUNIT_ASSERT( *i1++ == 1 ); in list1() 69 CPPUNIT_ASSERT( *i1++ == 4 ); in list1() 70 CPPUNIT_ASSERT( *i1++ == 9 ); in list1() 71 CPPUNIT_ASSERT( *i1++ == 16 ); in list1() 72 CPPUNIT_ASSERT( *i1++ == 36 ); in list1() 76 CPPUNIT_ASSERT( i2 == l1.begin() ); in list1() 82 CPPUNIT_ASSERT( *(i1++) == 0 ); in list1() 83 CPPUNIT_ASSERT( *i1 == 0 ); in list1() 90 CPPUNIT_ASSERT( l_char_ite != l_int_ite ); in list1() 106 CPPUNIT_ASSERT(*i++==1); in list2() [all …]
|
D | fstream_test.cpp | 101 CPPUNIT_ASSERT (f.good()); in output() 111 CPPUNIT_ASSERT( f.good() ); in input() 112 CPPUNIT_ASSERT( i == 1 ); in input() 115 CPPUNIT_ASSERT( f.good() ); in input() 116 CPPUNIT_ASSERT( d == 2.0 ); in input() 119 CPPUNIT_ASSERT( f.good() ); in input() 120 CPPUNIT_ASSERT( str == "abcd" ); in input() 123 CPPUNIT_ASSERT( f.good() ); in input() 124 CPPUNIT_ASSERT( c == '\n' ); in input() 126 CPPUNIT_ASSERT( f.good() ); in input() [all …]
|
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() 50 CPPUNIT_ASSERT(result[7]==46); in merge0() 51 CPPUNIT_ASSERT(result[8]==99); in merge0() 52 CPPUNIT_ASSERT(result[9]==101); in merge0() [all …]
|
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() 59 CPPUNIT_ASSERT(*labels[0] == 'Q'); in unique2() 60 CPPUNIT_ASSERT(*labels[1] == 'W'); in unique2() [all …]
|
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() 69 CPPUNIT_ASSERT( strcmp(letters[0], "aa") == 0 ); in stblsrt1() 70 CPPUNIT_ASSERT( strcmp(letters[1], "bb") == 0 ); in stblsrt1() 71 CPPUNIT_ASSERT( strcmp(letters[2], "cc") == 0 ); in stblsrt1() 72 CPPUNIT_ASSERT( strcmp(letters[3], "dd") == 0 ); in stblsrt1() [all …]
|
D | nthelm_test.cpp | 38 CPPUNIT_ASSERT(numbers[0]==1); in nthelem0() 39 CPPUNIT_ASSERT(numbers[1]==0); in nthelem0() 40 CPPUNIT_ASSERT(numbers[2]==2); in nthelem0() 41 CPPUNIT_ASSERT(numbers[3]==3); in nthelem0() 42 CPPUNIT_ASSERT(numbers[4]==4); in nthelem0() 43 CPPUNIT_ASSERT(numbers[5]==5); in nthelem0() 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() [all …]
|
D | slist_test.cpp | 82 CPPUNIT_ASSERT(!strcmp(result.c_str(),"sstxlx")); in slist1() 91 CPPUNIT_ASSERT(!strcmp(result.c_str(),"sstl")); in slist1() 101 CPPUNIT_ASSERT(!strcmp(result.c_str(),"stl")); in slist1() 110 CPPUNIT_ASSERT(!strcmp(result.c_str(),"lst")); in slist1() 117 CPPUNIT_ASSERT( sl_char_ite != sl_int_ite ); in slist1() 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() 147 CPPUNIT_ASSERT( sl.front() == 3 ); in erase() [all …]
|
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() 100 CPPUNIT_ASSERT(years[0]==1962); in sort_test() 101 CPPUNIT_ASSERT(years[1]==1992); in sort_test() [all …]
|
D | fill_test.cpp | 35 CPPUNIT_ASSERT(v[0]==42); in fill1() 36 CPPUNIT_ASSERT(v[1]==42); in fill1() 37 CPPUNIT_ASSERT(v[2]==42); in fill1() 38 CPPUNIT_ASSERT(v[3]==42); in fill1() 39 CPPUNIT_ASSERT(v[4]==42); in fill1() 40 CPPUNIT_ASSERT(v[5]==42); in fill1() 41 CPPUNIT_ASSERT(v[6]==42); in fill1() 42 CPPUNIT_ASSERT(v[7]==42); in fill1() 43 CPPUNIT_ASSERT(v[8]==42); in fill1() 44 CPPUNIT_ASSERT(v[9]==42); in fill1() [all …]
|
D | type_traits_test.cpp | 166 CPPUNIT_ASSERT( type_to_value(_ZeroRet()) == 0 ); in manips() 168 CPPUNIT_ASSERT( type_to_value(_OneRet()) == 1 ); in manips() 170 CPPUNIT_ASSERT( type_to_value(_AnyRet()) == 1 ); in manips() 174 CPPUNIT_ASSERT( __type2bool<__true_type>::_Ret == 1 ); in manips() 175 CPPUNIT_ASSERT( __type2bool<__false_type>::_Ret == 0 ); in manips() 176 CPPUNIT_ASSERT( __type2bool<any_type>::_Ret == 1 ); in manips() 181 CPPUNIT_ASSERT( type_to_value(_NotTrueRet()) == 0 ); in manips() 183 CPPUNIT_ASSERT( type_to_value(_NotFalseRet()) == 1 ); in manips() 188 CPPUNIT_ASSERT( type_to_value(_TrueTrueRet()) == 1 ); in manips() 190 CPPUNIT_ASSERT( type_to_value(_TrueFalseRet()) == 0 ); in manips() [all …]
|
D | hash_test.cpp | 86 CPPUNIT_ASSERT( !strcmp(m['x'].c_str(),"20") ); in hmap1() 88 CPPUNIT_ASSERT( !strcmp(m['x'].c_str(),"10") ); in hmap1() 90 CPPUNIT_ASSERT( !strcmp(m['z'].c_str(),"") ); in hmap1() 92 CPPUNIT_ASSERT( m.count('z')==1 ); in hmap1() 95 CPPUNIT_ASSERT(p.second); in hmap1() 98 CPPUNIT_ASSERT(!p.second); in hmap1() 106 CPPUNIT_ASSERT( ite == cite ); in hmap1() 107 CPPUNIT_ASSERT( !(ite != cite) ); in hmap1() 108 CPPUNIT_ASSERT( cite == ite ); in hmap1() 109 CPPUNIT_ASSERT( !(cite != ite) ); in hmap1() [all …]
|
D | bitset_test.cpp | 40 CPPUNIT_ASSERT(b1.size() == 13); in bitset1() 41 CPPUNIT_ASSERT(b1 == 0x1FFF); in bitset1() 42 CPPUNIT_ASSERT(b2.size() == 13); in bitset1() 43 CPPUNIT_ASSERT(b2 == 0x1111); in bitset1() 47 CPPUNIT_ASSERT(b1 == 0x1BBB); in bitset1() 49 CPPUNIT_ASSERT(b1.count() == 10); in bitset1() 50 CPPUNIT_ASSERT(b2.count() == 4); in bitset1() 54 CPPUNIT_ASSERT( __pos == 0 ); in bitset1() 56 CPPUNIT_ASSERT( __pos == 4 ); in bitset1() 58 CPPUNIT_ASSERT( __pos == 8 ); in bitset1() [all …]
|
D | num_put_get_test.cpp | 87 CPPUNIT_ASSERT(!str.fail()); in check_get_float() 88 CPPUNIT_ASSERT(str.eof()); in check_get_float() 98 CPPUNIT_ASSERT(!str.fail()); in check_get_float() 99 CPPUNIT_ASSERT(str.eof()); in check_get_float() 109 CPPUNIT_ASSERT(!str.fail()); in check_get_float() 110 CPPUNIT_ASSERT(str.eof()); in check_get_float() 120 CPPUNIT_ASSERT(!str.fail()); in check_get_float() 121 CPPUNIT_ASSERT(str.eof()); in check_get_float() 131 CPPUNIT_ASSERT(!str.fail()); in check_get_float() 132 CPPUNIT_ASSERT(str.eof()); in check_get_float() [all …]
|