Home
last modified time | relevance | path

Searched refs:CPPUNIT_ASSERT (Results 1 – 25 of 210) sorted by relevance

123456789

/ndk/tests/device/test-stlport/unit/
Drm_cp_test.cpp59 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 …]
Dperm_test.cpp47 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 …]
Drotate_test.cpp41 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 …]
Dsstream_test.cpp72 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 …]
Dmvctor_traits_test.cpp97 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 …]
Dvector_test.cpp73 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 …]
Dpartial_test.cpp68 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 …]
Dpartition_test.cpp61 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 …]
Dmvctor_declaration_test.cpp173 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 …]
Dunique_test.cpp40 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 …]
Dnthelm_test.cpp38 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 …]
Dmerge_test.cpp43 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 …]
Dfill_test.cpp35 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 …]
/ndk/tests/device/test-gnustl-full/unit/
Drm_cp_test.cpp59 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 …]
Dperm_test.cpp47 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 …]
Drotate_test.cpp41 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 …]
Dsstream_test.cpp72 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 …]
Dmvctor_traits_test.cpp97 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 …]
Dvector_test.cpp73 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 …]
Dpartial_test.cpp68 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 …]
Dpartition_test.cpp61 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 …]
Dmvctor_declaration_test.cpp173 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 …]
Dunique_test.cpp40 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 …]
Dnthelm_test.cpp38 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 …]
Dmerge_test.cpp43 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 …]

123456789