Home
last modified time | relevance | path

Searched refs:v2 (Results 1 – 25 of 221) sorted by relevance

123456789

/ndk/sources/third_party/googletest/googletest/include/gtest/
Dgtest_pred_impl.h134 const T2& v2) { in AssertPred2Helper() argument
135 if (pred(v1, v2)) return AssertionSuccess(); in AssertPred2Helper()
141 << "\n" << e2 << " evaluates to " << v2; in AssertPred2Helper()
146 #define GTEST_PRED_FORMAT2_(pred_format, v1, v2, on_failure)\ argument
147 GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
152 #define GTEST_PRED2_(pred, v1, v2, on_failure)\ argument
155 #v2, \
158 v2), on_failure)
161 #define EXPECT_PRED_FORMAT2(pred_format, v1, v2) \ argument
162 GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_)
[all …]
/ndk/tests/device/test-gnustl-full/unit/
Dswap_test.cpp91 queue<Obj> v2; in swap_container_non_spec() local
98 v2.push( Obj() ); in swap_container_non_spec()
99 v2.back().v = 10; in swap_container_non_spec()
100 v2.push( Obj() ); in swap_container_non_spec()
101 v2.back().v = 11; in swap_container_non_spec()
102 v2.push( Obj() ); in swap_container_non_spec()
103 v2.back().v = 12; in swap_container_non_spec()
106 CPPUNIT_CHECK( v2.size() == 3 ); in swap_container_non_spec()
108 swap( v1, v2 ); // this shouldn't try make it as v1.swap( v2 ), no queue::swap method! in swap_container_non_spec()
111 CPPUNIT_CHECK( v2.size() == 2 ); in swap_container_non_spec()
[all …]
Dincludes_test.cpp49 vector<int> v2(3); in incl1() local
55 bool r1=includes(v1.begin(), v1.end(), v2.begin(), v2.end()); in incl1()
58 for (i = 0; (size_t)i < v2.size(); ++i) in incl1()
59 v2[i] = i + 3; in incl1()
61 bool r2=includes(v1.begin(), v1.end(), v2.begin(), v2.end()); in incl1()
73 vector <char const*> v2(2); in incl2() local
75 v2[0] = "foo"; in incl2()
76 v2[1] = "bar"; in incl2()
78 sort(v2.begin(), v2.end(), compare_strings); in incl2()
80 bool r1 = includes(v1.begin(), v1.end(), v2.begin(), v2.end(), compare_strings); in incl2()
[all …]
Drotate_test.cpp108 vector <int> v2(v1.size()); in rotcopy1() local
110 rotate_copy(v1.begin(), v1.begin()+1, v1.end(), v2.begin()); in rotcopy1()
111 CPPUNIT_ASSERT(v2[0]==1); in rotcopy1()
112 CPPUNIT_ASSERT(v2[1]==2); in rotcopy1()
113 CPPUNIT_ASSERT(v2[2]==3); in rotcopy1()
114 CPPUNIT_ASSERT(v2[3]==4); in rotcopy1()
115 CPPUNIT_ASSERT(v2[4]==5); in rotcopy1()
116 CPPUNIT_ASSERT(v2[5]==6); in rotcopy1()
117 CPPUNIT_ASSERT(v2[6]==7); in rotcopy1()
118 CPPUNIT_ASSERT(v2[7]==8); in rotcopy1()
[all …]
Dsetdiff_test.cpp46 int v2[4] = { 10, 13, 17, 23 }; in setsymd0() local
49 set_symmetric_difference((int*)v1, (int*)v1 + 3, (int*)v2, (int*)v2 + 4, (int*)result); in setsymd0()
60 vector<int> v2(10); in setsymd1() local
61 __iota(v2.begin(), v2.end(), 7); in setsymd1()
64 set_symmetric_difference(v1.begin(), v1.end(), v2.begin(), v2.end(), back_inserter(diff)); in setsymd1()
90 int v2[4] = { 10, 13, 17, 23 }; in setdiff0() local
95 set_difference((int*)v1, (int*)v1 + 3, (int*)v2, (int*)v2 + 4, (int*)result); in setdiff0()
101 set_difference((int*)v2, (int*)v2 + 4, (int*)v1, (int*)v1 + 2, (int*)result); in setdiff0()
112 vector<int> v2(10); in setdiff1() local
113 __iota(v2.begin(), v2.end(), 7); in setdiff1()
[all …]
/ndk/tests/device/test-stlport/unit/
Dswap_test.cpp91 queue<Obj> v2; in swap_container_non_spec() local
98 v2.push( Obj() ); in swap_container_non_spec()
99 v2.back().v = 10; in swap_container_non_spec()
100 v2.push( Obj() ); in swap_container_non_spec()
101 v2.back().v = 11; in swap_container_non_spec()
102 v2.push( Obj() ); in swap_container_non_spec()
103 v2.back().v = 12; in swap_container_non_spec()
106 CPPUNIT_CHECK( v2.size() == 3 ); in swap_container_non_spec()
108 swap( v1, v2 ); // this shouldn't try make it as v1.swap( v2 ), no queue::swap method! in swap_container_non_spec()
111 CPPUNIT_CHECK( v2.size() == 2 ); in swap_container_non_spec()
[all …]
Dincludes_test.cpp49 vector<int> v2(3); in incl1() local
55 bool r1=includes(v1.begin(), v1.end(), v2.begin(), v2.end()); in incl1()
58 for (i = 0; (size_t)i < v2.size(); ++i) in incl1()
59 v2[i] = i + 3; in incl1()
61 bool r2=includes(v1.begin(), v1.end(), v2.begin(), v2.end()); in incl1()
73 vector <char const*> v2(2); in incl2() local
75 v2[0] = "foo"; in incl2()
76 v2[1] = "bar"; in incl2()
78 sort(v2.begin(), v2.end(), compare_strings); in incl2()
80 bool r1 = includes(v1.begin(), v1.end(), v2.begin(), v2.end(), compare_strings); in incl2()
[all …]
Drotate_test.cpp108 vector <int> v2(v1.size()); in rotcopy1() local
110 rotate_copy(v1.begin(), v1.begin()+1, v1.end(), v2.begin()); in rotcopy1()
111 CPPUNIT_ASSERT(v2[0]==1); in rotcopy1()
112 CPPUNIT_ASSERT(v2[1]==2); in rotcopy1()
113 CPPUNIT_ASSERT(v2[2]==3); in rotcopy1()
114 CPPUNIT_ASSERT(v2[3]==4); in rotcopy1()
115 CPPUNIT_ASSERT(v2[4]==5); in rotcopy1()
116 CPPUNIT_ASSERT(v2[5]==6); in rotcopy1()
117 CPPUNIT_ASSERT(v2[6]==7); in rotcopy1()
118 CPPUNIT_ASSERT(v2[7]==8); in rotcopy1()
[all …]
Dsetdiff_test.cpp46 int v2[4] = { 10, 13, 17, 23 }; in setsymd0() local
49 set_symmetric_difference((int*)v1, (int*)v1 + 3, (int*)v2, (int*)v2 + 4, (int*)result); in setsymd0()
60 vector<int> v2(10); in setsymd1() local
61 __iota(v2.begin(), v2.end(), 7); in setsymd1()
64 set_symmetric_difference(v1.begin(), v1.end(), v2.begin(), v2.end(), back_inserter(diff)); in setsymd1()
90 int v2[4] = { 10, 13, 17, 23 }; in setdiff0() local
95 set_difference((int*)v1, (int*)v1 + 3, (int*)v2, (int*)v2 + 4, (int*)result); in setdiff0()
101 set_difference((int*)v2, (int*)v2 + 4, (int*)v1, (int*)v1 + 2, (int*)result); in setdiff0()
112 vector<int> v2(10); in setdiff1() local
113 __iota(v2.begin(), v2.end(), 7); in setdiff1()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector.bool/
Dswap.pass.cpp24 std::vector<bool> v2(200); in main() local
25 v1.swap(v2); in main()
28 assert(v2.size() == 100); in main()
29 assert(v2.capacity() >= 100); in main()
34 std::vector<bool, A> v2(200, false, A(2)); in main() local
35 swap(v1, v2); in main()
38 assert(v2.size() == 100); in main()
39 assert(v2.capacity() >= 100); in main()
41 assert(v2.get_allocator() == A(2)); in main()
46 std::vector<bool, A> v2(200, false, A(2)); in main() local
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/numarray/template.valarray/valarray.assign/
Dinitializer_list_assign.pass.cpp26 std::valarray<T> v2; in main() local
27 v2 = {1, 2, 3, 4, 5}; in main()
28 assert(v2.size() == N); in main()
29 for (int i = 0; i < v2.size(); ++i) in main()
30 assert(v2[i] == a[i]); in main()
36 std::valarray<T> v2; in main() local
37 v2 = {1, 2.5, 3, 4.25, 5}; in main()
38 assert(v2.size() == N); in main()
39 for (int i = 0; i < v2.size(); ++i) in main()
40 assert(v2[i] == a[i]); in main()
[all …]
Dcopy_assign.pass.cpp26 std::valarray<T> v2; in main() local
27 v2 = v; in main()
28 assert(v2.size() == v.size()); in main()
29 for (int i = 0; i < v2.size(); ++i) in main()
30 assert(v2[i] == v[i]); in main()
37 std::valarray<T> v2; in main() local
38 v2 = v; in main()
39 assert(v2.size() == v.size()); in main()
40 for (int i = 0; i < v2.size(); ++i) in main()
41 assert(v2[i] == v[i]); in main()
[all …]
Dmove_assign.pass.cpp27 std::valarray<T> v2; in main() local
28 v2 = std::move(v); in main()
29 assert(v2.size() == N); in main()
31 for (int i = 0; i < v2.size(); ++i) in main()
32 assert(v2[i] == a[i]); in main()
39 std::valarray<T> v2; in main() local
40 v2 = std::move(v); in main()
41 assert(v2.size() == N); in main()
43 for (int i = 0; i < v2.size(); ++i) in main()
44 assert(v2[i] == a[i]); in main()
[all …]
Dmask_array_assign.pass.cpp27 std::valarray<int> v2(5); in main() local
28 v2 = v1[vb]; in main()
29 assert(v2.size() == 5); in main()
30 assert(v2[ 0] == 0); in main()
31 assert(v2[ 1] == 3); in main()
32 assert(v2[ 2] == 4); in main()
33 assert(v2[ 3] == 7); in main()
34 assert(v2[ 4] == 11); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/numarray/valarray.nonmembers/valarray.special/
Dswap.pass.cpp30 std::valarray<T> v2(a2, N2); in main() local
32 std::valarray<T> v2_save = v2; in main()
33 swap(v1, v2); in main()
37 assert(v2.size() == v1_save.size()); in main()
38 for (int i = 0; i < v2.size(); ++i) in main()
39 assert(v2[i] == v1_save[i]); in main()
47 std::valarray<T> v2; in main() local
49 std::valarray<T> v2_save = v2; in main()
50 swap(v1, v2); in main()
54 assert(v2.size() == v1_save.size()); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/numarray/template.valarray/valarray.members/
Dswap.pass.cpp28 std::valarray<T> v2(a2, N2); in main() local
30 std::valarray<T> v2_save = v2; in main()
31 v1.swap(v2); in main()
35 assert(v2.size() == v1_save.size()); in main()
36 for (int i = 0; i < v2.size(); ++i) in main()
37 assert(v2[i] == v1_save[i]); in main()
45 std::valarray<T> v2; in main() local
47 std::valarray<T> v2_save = v2; in main()
48 v1.swap(v2); in main()
52 assert(v2.size() == v1_save.size()); in main()
[all …]
Dshift.pass.cpp27 std::valarray<T> v2 = v1.shift(0); in main() local
28 assert(v2.size() == N1); in main()
30 assert(v2[i] == a2[i]); in main()
38 std::valarray<T> v2 = v1.shift(1); in main() local
39 assert(v2.size() == N1); in main()
41 assert(v2[i] == a2[i]); in main()
49 std::valarray<T> v2 = v1.shift(9); in main() local
50 assert(v2.size() == N1); in main()
52 assert(v2[i] == a2[i]); in main()
60 std::valarray<T> v2 = v1.shift(90); in main() local
[all …]
Dcshift.pass.cpp27 std::valarray<T> v2 = v1.cshift(0); in main() local
28 assert(v2.size() == N1); in main()
30 assert(v2[i] == a2[i]); in main()
38 std::valarray<T> v2 = v1.cshift(3); in main() local
39 assert(v2.size() == N1); in main()
41 assert(v2[i] == a2[i]); in main()
49 std::valarray<T> v2 = v1.cshift(10); in main() local
50 assert(v2.size() == N1); in main()
52 assert(v2[i] == a2[i]); in main()
60 std::valarray<T> v2 = v1.cshift(17); in main() local
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.capacity/
Dswap.pass.cpp24 std::vector<int> v2(200); in main() local
26 assert(is_contiguous_container_asan_correct(v2)); in main()
27 v1.swap(v2); in main()
31 assert(v2.size() == 100); in main()
32 assert(v2.capacity() == 100); in main()
33 assert(is_contiguous_container_asan_correct(v2)); in main()
38 std::vector<int, min_allocator<int>> v2(200); in main() local
40 assert(is_contiguous_container_asan_correct(v2)); in main()
41 v1.swap(v2); in main()
45 assert(v2.size() == 100); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/numarray/template.valarray/valarray.unary/
Dplus.pass.cpp26 std::valarray<T> v2 = +v; in main() local
27 assert(v2.size() == v.size()); in main()
28 for (int i = 0; i < v2.size(); ++i) in main()
29 assert(v2[i] == +v[i]); in main()
36 std::valarray<T> v2 = +v; in main() local
37 assert(v2.size() == v.size()); in main()
38 for (int i = 0; i < v2.size(); ++i) in main()
39 assert(v2[i] == +v[i]); in main()
46 std::valarray<T> v2 = +v; in main() local
47 assert(v2.size() == v.size()); in main()
[all …]
Dnegate.pass.cpp26 std::valarray<T> v2 = -v; in main() local
27 assert(v2.size() == v.size()); in main()
28 for (int i = 0; i < v2.size(); ++i) in main()
29 assert(v2[i] == -v[i]); in main()
36 std::valarray<T> v2 = -v; in main() local
37 assert(v2.size() == v.size()); in main()
38 for (int i = 0; i < v2.size(); ++i) in main()
39 assert(v2[i] == -v[i]); in main()
46 std::valarray<T> v2 = -v; in main() local
47 assert(v2.size() == v.size()); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.cons/
Dcopy.pass.cpp41 std::vector<int, test_allocator<int> > v2 = v; in main() local
43 assert(is_contiguous_container_asan_correct(v2)); in main()
44 assert(v2 == v); in main()
45 assert(v2.get_allocator() == v.get_allocator()); in main()
47 assert(is_contiguous_container_asan_correct(v2)); in main()
52 std::vector<int, other_allocator<int> > v2 = v; in main() local
54 assert(is_contiguous_container_asan_correct(v2)); in main()
55 assert(v2 == v); in main()
56 assert(v2.get_allocator() == other_allocator<int>(-2)); in main()
58 assert(is_contiguous_container_asan_correct(v2)); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/numarray/template.valarray/valarray.sub/
Dvalarray_bool_non_const.pass.cpp27 std::valarray<int> v2(5); in main() local
28 v2 = v1[vb]; in main()
29 assert(v2.size() == 5); in main()
30 assert(v2[ 0] == 0); in main()
31 assert(v2[ 1] == 3); in main()
32 assert(v2[ 2] == 4); in main()
33 assert(v2[ 3] == 7); in main()
34 assert(v2[ 4] == 11); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/numarray/template.valarray/valarray.cons/
Dmove.pass.cpp28 std::valarray<T> v2 = std::move(v); in main() local
29 assert(v2.size() == N); in main()
31 for (int i = 0; i < v2.size(); ++i) in main()
32 assert(v2[i] == a[i]); in main()
39 std::valarray<T> v2 = std::move(v); in main() local
40 assert(v2.size() == N); in main()
42 for (int i = 0; i < v2.size(); ++i) in main()
43 assert(v2[i] == a[i]); in main()
50 std::valarray<T> v2 = std::move(v); in main() local
51 assert(v2.size() == N); in main()
[all …]
Dcopy.pass.cpp26 std::valarray<T> v2 = v; in main() local
27 assert(v2.size() == v.size()); in main()
28 for (int i = 0; i < v2.size(); ++i) in main()
29 assert(v2[i] == v[i]); in main()
36 std::valarray<T> v2 = v; in main() local
37 assert(v2.size() == v.size()); in main()
38 for (int i = 0; i < v2.size(); ++i) in main()
39 assert(v2[i] == v[i]); in main()
46 std::valarray<T> v2 = v; in main() local
47 assert(v2.size() == v.size()); in main()
[all …]

123456789