/third_party/boost/libs/phoenix/test/boost_bind_compatibility/ |
D | bind_eq_test.cpp | 189 template<class F, class V> void test_1_(F f, V v1, V v2) in test_1_() argument 191 test_eq( bind(f, v1), bind(f, v1) ); in test_1_() 192 test_ne( bind(f, v1), bind(f, v2) ); in test_1_() 207 template<class F, class V> void test_2_(F f, V v1, V v2) in test_2_() argument 209 test_eq( bind(f, v1, v1), bind(f, v1, v1) ); in test_2_() 210 test_ne( bind(f, v1, v1), bind(f, v1, v2) ); in test_2_() 211 test_ne( bind(f, v1, v1), bind(f, v2, v1) ); in test_2_() 226 template<class F, class V> void test_3_(F f, V v1, V v2) in test_3_() argument 228 test_eq( bind(f, v1, v1, v1), bind(f, v1, v1, v1) ); in test_3_() 229 test_ne( bind(f, v1, v1, v1), bind(f, v1, v1, v2) ); in test_3_() [all …]
|
/third_party/boost/libs/bind/test/ |
D | bind_eq_test.cpp | 155 template<class F, class V> void test_1_(F f, V v1, V v2) in test_1_() argument 157 test_eq( boost::bind(f, v1), boost::bind(f, v1) ); in test_1_() 158 test_ne( boost::bind(f, v1), boost::bind(f, v2) ); in test_1_() 173 template<class F, class V> void test_2_(F f, V v1, V v2) in test_2_() argument 175 test_eq( boost::bind(f, v1, v1), boost::bind(f, v1, v1) ); in test_2_() 176 test_ne( boost::bind(f, v1, v1), boost::bind(f, v1, v2) ); in test_2_() 177 test_ne( boost::bind(f, v1, v1), boost::bind(f, v2, v1) ); in test_2_() 192 template<class F, class V> void test_3_(F f, V v1, V v2) in test_3_() argument 194 test_eq( boost::bind(f, v1, v1, v1), boost::bind(f, v1, v1, v1) ); in test_3_() 195 test_ne( boost::bind(f, v1, v1, v1), boost::bind(f, v1, v1, v2) ); in test_3_() [all …]
|
/third_party/unity/test/tests/ |
D | test_unity_integers.c | 82 UNITY_UINT16 v0, v1; in testNotEqualUInts() local 85 v1 = 9001; in testNotEqualUInts() 88 TEST_ASSERT_EQUAL_UINT(v0, v1); in testNotEqualUInts() 94 UNITY_UINT8 v0, v1; in testNotEqualUInt8s() local 97 v1 = 255; in testNotEqualUInt8s() 100 TEST_ASSERT_EQUAL_UINT8(v0, v1); in testNotEqualUInt8s() 106 UNITY_UINT16 v0, v1; in testNotEqualUInt16s() local 109 v1 = 65534u; in testNotEqualUInt16s() 112 TEST_ASSERT_EQUAL_UINT16(v0, v1); in testNotEqualUInt16s() 118 UNITY_UINT32 v0, v1; in testNotEqualUInt32s() local [all …]
|
/third_party/mesa3d/src/gtest/include/gtest/ |
D | gtest_pred_impl.h | 90 const T1& v1) { in AssertPred1Helper() argument 91 if (pred(v1)) return AssertionSuccess(); in AssertPred1Helper() 96 << e1 << " evaluates to " << ::testing::PrintToString(v1); in AssertPred1Helper() 101 #define GTEST_PRED_FORMAT1_(pred_format, v1, on_failure)\ argument 102 GTEST_ASSERT_(pred_format(#v1, v1), \ 107 #define GTEST_PRED1_(pred, v1, on_failure)\ argument 109 #v1, \ 111 v1), on_failure) 114 #define EXPECT_PRED_FORMAT1(pred_format, v1) \ argument 115 GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_NONFATAL_FAILURE_) [all …]
|
/third_party/googletest/googletest/include/gtest/ |
D | gtest_pred_impl.h | 90 const T1& v1) { in AssertPred1Helper() argument 91 if (pred(v1)) return AssertionSuccess(); in AssertPred1Helper() 96 << e1 << " evaluates to " << ::testing::PrintToString(v1); in AssertPred1Helper() 101 #define GTEST_PRED_FORMAT1_(pred_format, v1, on_failure)\ argument 102 GTEST_ASSERT_(pred_format(#v1, v1), \ 107 #define GTEST_PRED1_(pred, v1, on_failure)\ argument 109 #v1, \ 111 v1), on_failure) 114 #define EXPECT_PRED_FORMAT1(pred_format, v1) \ argument 115 GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_NONFATAL_FAILURE_) [all …]
|
/third_party/boost/libs/math/test/compile_test/ |
D | instantiate.hpp | 165 RealType v1(0.5), v2(0.5), v3(0.5); in instantiate() local 169 boost::math::tgamma(v1); in instantiate() 170 boost::math::tgamma1pm1(v1); in instantiate() 171 boost::math::lgamma(v1); in instantiate() 172 boost::math::lgamma(v1, &i); in instantiate() 173 boost::math::digamma(v1); in instantiate() 174 boost::math::trigamma(v1); in instantiate() 175 boost::math::polygamma(i, v1); in instantiate() 176 boost::math::tgamma_ratio(v1, v2); in instantiate() 177 boost::math::tgamma_delta_ratio(v1, v2); in instantiate() [all …]
|
/third_party/boost/libs/multiprecision/test/ublas_interop/ |
D | test22.cpp | 23 V v1(N), v2(N); in test() local 27 initialize_vector(v1); in test() 29 ublas::blas_2::tmv(v1, m); in test() 30 std::cout << "tmv (v1, m) = " << v1 << std::endl; in test() 31 initialize_vector(v1); in test() 33 ublas::blas_2::tmv(v1, ublas::trans(m)); in test() 34 std::cout << "tmv (v1, trans (m)) = " << v1 << std::endl; in test() 36 initialize_vector(v1); in test() 38 ublas::blas_2::tmv(v1, ublas::herm(m)); in test() 39 std::cout << "tmv (v1, herm (m)) = " << v1 << std::endl; in test() [all …]
|
D | test11.cpp | 26 void test_container_with(VP& v1) const in test_container_with() 30 v1.insert_element(0, 55); in test_container_with() 31 v1.erase_element(1); in test_container_with() 32 v1.clear(); in test_container_with() 36 void test_expression_with(VP& v1, VP& v2, VP& v3) const in test_expression_with() 47 initialize_vector(v1); in test_expression_with() 49 v1 = v2; in test_expression_with() 50 std::cout << "v1 = v2 = " << v1 << std::endl; in test_expression_with() 51 v1.assign_temporary(v2); in test_expression_with() 52 std::cout << "v1.assign_temporary (v2) = " << v1 << std::endl; in test_expression_with() [all …]
|
D | test31.cpp | 28 void test_with(VP& v1, VP& v2, VP& v3) const in test_with() 39 initialize_vector(v1); in test_with() 41 v1 = v2; in test_with() 42 std::cout << "v1 = v2 = " << v1 << std::endl; in test_with() 43 v1.assign_temporary(v2); in test_with() 44 std::cout << "v1.assign_temporary (v2) = " << v1 << std::endl; in test_with() 45 v1.swap(v2); in test_with() 46 std::cout << "v1.swap (v2) = " << v1 << " " << v2 << std::endl; in test_with() 49 v1 = ublas::zero_vector<>(v1.size()); in test_with() 50 std::cout << "v1.zero_vector = " << v1 << std::endl; in test_with() [all …]
|
D | test71.cpp | 31 void test_with(VP& v1, VP& v2, VP& v3) const in test_with() 39 initialize_vector(v1); in test_with() 41 v1 = v2; in test_with() 42 std::cout << "v1 = v2 = " << v1 << std::endl; in test_with() 43 v1.assign_temporary(v2); in test_with() 44 std::cout << "v1.assign_temporary (v2) = " << v1 << std::endl; in test_with() 45 v1.swap(v2); in test_with() 46 std::cout << "v1.swap (v2) = " << v1 << " " << v2 << std::endl; in test_with() 49 v1 = ublas::zero_vector<value_type>(v1.size()); in test_with() 50 std::cout << "v1.zero_vector = " << v1 << std::endl; in test_with() [all …]
|
/third_party/boost/libs/numeric/ublas/test/ |
D | test22.cpp | 18 V v1 (N), v2 (N); in test() local 22 initialize_vector (v1); in test() 24 ublas::blas_2::tmv (v1, m); in test() 25 std::cout << "tmv (v1, m) = " << v1 << std::endl; in test() 26 initialize_vector (v1); in test() 28 ublas::blas_2::tmv (v1, ublas::trans (m)); in test() 29 std::cout << "tmv (v1, trans (m)) = " << v1 << std::endl; in test() 31 initialize_vector (v1); in test() 33 ublas::blas_2::tmv (v1, ublas::herm (m)); in test() 34 std::cout << "tmv (v1, herm (m)) = " << v1 << std::endl; in test() [all …]
|
D | test11.cpp | 21 void test_container_with (VP &v1) const { in test_container_with() 24 v1.insert_element (0, 55); in test_container_with() 25 v1.erase_element (1); in test_container_with() 26 v1.clear (); in test_container_with() 30 void test_expression_with (VP &v1, VP &v2, VP &v3) const { in test_expression_with() 40 initialize_vector (v1); in test_expression_with() 42 v1 = v2; in test_expression_with() 43 std::cout << "v1 = v2 = " << v1 << std::endl; in test_expression_with() 44 v1.assign_temporary (v2); in test_expression_with() 45 std::cout << "v1.assign_temporary (v2) = " << v1 << std::endl; in test_expression_with() [all …]
|
D | test71.cpp | 22 void test_with (VP &v1, VP &v2, VP &v3) const { in test_with() 29 initialize_vector (v1); in test_with() 31 v1 = v2; in test_with() 32 std::cout << "v1 = v2 = " << v1 << std::endl; in test_with() 33 v1.assign_temporary (v2); in test_with() 34 std::cout << "v1.assign_temporary (v2) = " << v1 << std::endl; in test_with() 35 v1.swap (v2); in test_with() 36 std::cout << "v1.swap (v2) = " << v1 << " " << v2 << std::endl; in test_with() 39 v1 = ublas::zero_vector<value_type> (v1.size ()); in test_with() 40 std::cout << "v1.zero_vector = " << v1 << std::endl; in test_with() [all …]
|
D | test31.cpp | 23 void test_with (VP &v1, VP &v2, VP &v3) const { in test_with() 33 initialize_vector (v1); in test_with() 35 v1 = v2; in test_with() 36 std::cout << "v1 = v2 = " << v1 << std::endl; in test_with() 37 v1.assign_temporary (v2); in test_with() 38 std::cout << "v1.assign_temporary (v2) = " << v1 << std::endl; in test_with() 39 v1.swap (v2); in test_with() 40 std::cout << "v1.swap (v2) = " << v1 << " " << v2 << std::endl; in test_with() 43 v1 = ublas::zero_vector<> (v1.size ()); in test_with() 44 std::cout << "v1.zero_vector = " << v1 << std::endl; in test_with() [all …]
|
/third_party/boost/libs/algorithm/test/ |
D | find_backward_test.cpp | 67 std::vector<int> v1; in test_find_backward() local 68 const dist_t<std::vector<int> > dist(v1); in test_find_backward() 71 v1.push_back(i); in test_find_backward() 73 dist(ba::find_backward(v1.begin(), v1.end(), 0)), v1.size()); in test_find_backward() 75 dist(ba::find_backward(v1.begin(), v1.end(), 100)), v1.size()); in test_find_backward() 77 dist(ba::find_backward(v1.begin(), v1.end(), v1.back())), in test_find_backward() 78 v1.size() - 1); in test_find_backward() 80 dist(ba::find_backward(v1.begin(), v1.end(), v1.front())), 0); in test_find_backward() 82 BOOST_CHECK_EQUAL(dist(ba::find_backward(v1, 0)), v1.size()); in test_find_backward() 83 BOOST_CHECK_EQUAL(dist(ba::find_backward(v1, 100)), v1.size()); in test_find_backward() [all …]
|
/third_party/boost/libs/variant2/test/ |
D | variant_lt_gt.cpp | 27 #define TEST_EQ( v1, v2 ) \ argument 28 BOOST_TEST_NOT( v1 < v2 ); \ 29 BOOST_TEST_NOT( v1 > v2 ); \ 30 BOOST_TEST( v1 <= v2 ); \ 31 BOOST_TEST( v1 >= v2 ); 33 #define TEST_LE( v1, v3 ) \ argument 34 BOOST_TEST( v1 < v3 ); \ 35 BOOST_TEST( v3 > v1 ); \ 36 BOOST_TEST_NOT( v1 > v3 ); \ 37 BOOST_TEST_NOT( v3 < v1 ); \ [all …]
|
D | variant_lt_gt_cx.cpp | 33 #define TEST_EQ( v1, v2 ) \ argument 34 STATIC_ASSERT( !(v1 < v2) ); \ 35 STATIC_ASSERT( !(v1 > v2) ); \ 36 STATIC_ASSERT( v1 <= v2 ); \ 37 STATIC_ASSERT( v1 >= v2 ); 39 #define TEST_LE( v1, v3 ) \ argument 40 STATIC_ASSERT( v1 < v3 ); \ 41 STATIC_ASSERT( v3 > v1 ); \ 42 STATIC_ASSERT( !(v1 > v3) ); \ 43 STATIC_ASSERT( !(v3 < v1) ); \ [all …]
|
/third_party/boost/libs/multiprecision/test/concepts/ |
D | sf_concept_check_basic.cpp | 69 T v1, v2, v3; in test_extra() local 71 (boost::math::fpclassify)(v1); in test_extra() 72 (boost::math::isfinite)(v1); in test_extra() 73 (boost::math::isnormal)(v1); in test_extra() 74 (boost::math::isnan)(v1); in test_extra() 75 (boost::math::isinf)(v1); in test_extra() 76 (boost::math::signbit)(v1); in test_extra() 77 (boost::math::copysign)(v1, v2); in test_extra() 78 (boost::math::changesign)(v1); in test_extra() 79 (boost::math::sign)(v1); in test_extra() [all …]
|
/third_party/boost/boost/units/detail/ |
D | cmath_impl.hpp | 22 inline bool isgreater BOOST_PREVENT_MACRO_SUBSTITUTION(const Y& v1,const Y& v2) in BOOST_PREVENT_MACRO_SUBSTITUTION() argument 24 if((boost::math::isnan)(v1) || (boost::math::isnan)(v2)) return false; in BOOST_PREVENT_MACRO_SUBSTITUTION() 25 else return v1 > v2; in BOOST_PREVENT_MACRO_SUBSTITUTION() 29 inline bool isgreaterequal BOOST_PREVENT_MACRO_SUBSTITUTION(const Y& v1,const Y& v2) in BOOST_PREVENT_MACRO_SUBSTITUTION() argument 31 if((boost::math::isnan)(v1) || (boost::math::isnan)(v2)) return false; in BOOST_PREVENT_MACRO_SUBSTITUTION() 32 else return v1 >= v2; in BOOST_PREVENT_MACRO_SUBSTITUTION() 36 inline bool isless BOOST_PREVENT_MACRO_SUBSTITUTION(const Y& v1,const Y& v2) in BOOST_PREVENT_MACRO_SUBSTITUTION() argument 38 if((boost::math::isnan)(v1) || (boost::math::isnan)(v2)) return false; in BOOST_PREVENT_MACRO_SUBSTITUTION() 39 else return v1 < v2; in BOOST_PREVENT_MACRO_SUBSTITUTION() 43 inline bool islessequal BOOST_PREVENT_MACRO_SUBSTITUTION(const Y& v1,const Y& v2) in BOOST_PREVENT_MACRO_SUBSTITUTION() argument [all …]
|
/third_party/abseil-cpp/absl/algorithm/ |
D | algorithm_test.cc | 27 std::vector<int> v1{1, 2, 3}; in TEST() local 28 std::vector<int> v2 = v1; in TEST() 32 EXPECT_TRUE(absl::equal(v1.begin(), v1.end(), v2.begin(), v2.end())); in TEST() 33 EXPECT_FALSE(absl::equal(v1.begin(), v1.end(), v3.begin(), v3.end())); in TEST() 34 EXPECT_FALSE(absl::equal(v1.begin(), v1.end(), v4.begin(), v4.end())); in TEST() 49 std::vector<int> v1{1, 2, 3}; in TEST() local 53 EXPECT_FALSE(absl::equal(v1.begin(), v1.end(), empty1.begin(), empty1.end())); in TEST() 54 EXPECT_FALSE(absl::equal(empty1.begin(), empty1.end(), v1.begin(), v1.end())); in TEST() 60 std::vector<int> v1{1, 2, 3}; in TEST() local 61 std::list<int> lst1{v1.begin(), v1.end()}; in TEST() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/algorithm/ |
D | algorithm_test.cc | 27 std::vector<int> v1{1, 2, 3}; in TEST() local 28 std::vector<int> v2 = v1; in TEST() 32 EXPECT_TRUE(absl::equal(v1.begin(), v1.end(), v2.begin(), v2.end())); in TEST() 33 EXPECT_FALSE(absl::equal(v1.begin(), v1.end(), v3.begin(), v3.end())); in TEST() 34 EXPECT_FALSE(absl::equal(v1.begin(), v1.end(), v4.begin(), v4.end())); in TEST() 49 std::vector<int> v1{1, 2, 3}; in TEST() local 53 EXPECT_FALSE(absl::equal(v1.begin(), v1.end(), empty1.begin(), empty1.end())); in TEST() 54 EXPECT_FALSE(absl::equal(empty1.begin(), empty1.end(), v1.begin(), v1.end())); in TEST() 60 std::vector<int> v1{1, 2, 3}; in TEST() local 61 std::list<int> lst1{v1.begin(), v1.end()}; in TEST() [all …]
|
/third_party/openh264/codec/decoder/core/arm64/ |
D | intra_pred_aarch64_neon.S | 80 dup v1.8b, v0.b[7] 81 ext v2.8b, v0.8b, v1.8b, #1 82 ext v3.8b, v0.8b, v1.8b, #2 84 uaddl v1.8h, v3.8b, v0.8b 85 add v1.8h, v1.8h, v2.8h 86 uqrshrn v1.8b, v1.8h, #2 87 st1 {v1.S}[0], [x0], x1 88 ext v0.8b, v1.8b, v2.8b, #1 90 ext v0.8b, v1.8b, v2.8b, #2 92 ext v0.8b, v1.8b, v2.8b, #3 [all …]
|
/third_party/openh264/codec/encoder/core/arm64/ |
D | intra_pred_aarch64_neon.S | 80 dup v1.8b, v0.b[7] 81 ext v2.8b, v0.8b, v1.8b, #1 82 ext v3.8b, v0.8b, v1.8b, #2 84 uaddl v1.8h, v3.8b, v0.8b 85 add v1.8h, v1.8h, v2.8h 86 uqrshrn v1.8b, v1.8h, #2 87 st1 {v1.S}[0], [x0], 4 88 ext v0.8b, v1.8b, v2.8b, #1 90 ext v0.8b, v1.8b, v2.8b, #2 92 ext v0.8b, v1.8b, v2.8b, #3 [all …]
|
/third_party/boost/libs/variant/test/ |
D | variant_nonempty_check.cpp | 263 boost::variant<Nonthrowing, throwing_class> v1, v2; in check_3_impl() local 265 swap(v1, v2); in check_3_impl() 267 v1 = throwing_class(helper); in check_3_impl() 268 BOOST_TEST(v1.which() == 1); in check_3_impl() 269 BOOST_TEST(boost::get<throwing_class>(&v1)); in check_3_impl() 271 BOOST_TEST(!v1.which()); in check_3_impl() 272 BOOST_TEST(boost::get<Nonthrowing>(&v1)); in check_3_impl() 286 if (!v1.which() && !v2.which()) { in check_3_impl() 287 swap(v1, v2); // Make sure that two backup holders swap well in check_3_impl() 288 BOOST_TEST(!v1.which()); in check_3_impl() [all …]
|
D | auto_visitors.cpp | 89 variant_type v2("10"), v1("100"); in run_explicit() local 95 BOOST_TEST(boost::apply_visitor(visitor_ref, v2, v1).c_str() == std::string("100")); in run_explicit() 177 std::string& operator()(const T1& v1, const T2& v2) { in operator ()() 178 res = boost::lexical_cast<std::string>(v1) + "+" + boost::lexical_cast<std::string>(v2); in operator ()() 184 std::string& operator()(const T1& v1, const T2& v2, const T3& v3) { in operator ()() 185 res = boost::lexical_cast<std::string>(v1) + "+" + boost::lexical_cast<std::string>(v2) in operator ()() 200 variant_type v1(1), v2("10"), v3(100.0); in run() local 203 BOOST_TEST(boost::apply_visitor(lex_streamer(), v1) == "1"); in run() 204 BOOST_TEST_IF_HAS_VARIADIC(boost::apply_visitor(lex_streamer_visitor)(v1) == "1"); in run() 209 …_TEST(boost::apply_visitor([](auto v) { return boost::lexical_cast<std::string>(v); }, v1) == "1"); in run() [all …]
|