Home
last modified time | relevance | path

Searched refs:expected_value (Results 1 – 25 of 97) sorted by relevance

1234

/third_party/node/test/parallel/
Dtest-fs-realpath-buffer-encoding.js21 const expected_value = expected[encoding]; constant
25 assert.strictEqual(result, expected_value);
28 assert.strictEqual(result, expected_value);
31 assert.strictEqual(result, expected_value);
34 assert.strictEqual(result, expected_value);
52 const expected_value = expected[encoding]; constant
58 assert.strictEqual(res, expected_value);
62 assert.strictEqual(res, expected_value);
68 assert.strictEqual(res, expected_value);
72 assert.strictEqual(res, expected_value);
/third_party/boost/libs/type_traits/test/
Dcheck_integral_constant.hpp33 #define BOOST_CHECK_INTEGRAL_CONSTANT(expression, expected_value)\ argument
39 if(!::boost::detail::tt_compare((int)expression, expected_value))\
40 …::detail::integral_constant<(int)(expression)>::value() << ", expected " << expected_value << ")" )
51 #define BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(expression, expected_value, alternate_value)\ argument
57 if(!::boost::detail::tt_compare((int)expression, expected_value))\
61 …detail::integral_constant<(int)(expression)>::value() << ", expected " << expected_value << ")" );\
65 …l::integral_constant<(int)(expression)>::value() << ", expected " << expected_value << ")</note>" …
/third_party/vk-gl-cts/external/openglcts/modules/glesext/tessellation_shader/
DesextcTessellationShaderProperties.cpp84 glw::GLint expected_value = property_value_data[n_property * 3 + 2]; in iterate() local
98 (expected_value != 0) ? (glw::GLboolean)GL_TRUE : (glw::GLboolean)GL_FALSE, in iterate()
99 (expected_value != 0) ? (glw::GLboolean)GL_TRUE : (glw::GLboolean)GL_FALSE, in iterate()
100 (expected_value != 0) ? (glw::GLboolean)GL_TRUE : (glw::GLboolean)GL_FALSE, in iterate()
101 (expected_value != 0) ? (glw::GLboolean)GL_TRUE : (glw::GLboolean)GL_FALSE in iterate()
103 …glw::GLint expected_int_value[4] = { expected_value, expected_value, expected_value, expected_valu… in iterate()
121 if ((n_components >= 1 && de::abs(float_value[0] - (float)expected_value) > epsilon) || in iterate()
122 (n_components >= 2 && de::abs(float_value[1] - (float)expected_value) > epsilon) || in iterate()
123 (n_components >= 3 && de::abs(float_value[2] - (float)expected_value) > epsilon) || in iterate()
124 (n_components >= 4 && de::abs(float_value[3] - (float)expected_value) > epsilon)) in iterate()
DesextcTessellationShaderTCTE.cpp930 float expected_value = 1.0f / (float(vertex_id) + 1.0f); in iterate() local
935 expected_value += 1.0f; in iterate()
938 if (de::abs(data - expected_value) > epsilon) in iterate()
943 << expected_value << "], " in iterate()
958 float expected_value = (float)(n_vertex / run.n_result_vertices_per_patch); in iterate() local
963 expected_value += 1.0f; in iterate()
966 if (de::abs(data.x - expected_value) > epsilon || de::abs(data.y - expected_value) > epsilon || in iterate()
967 de::abs(data.z - expected_value) > epsilon || de::abs(data.w - expected_value) > epsilon) in iterate()
973 << expected_value << ", " << expected_value << ", " << expected_value << ", " in iterate()
974 << expected_value << "], found:" in iterate()
[all …]
/third_party/boost/libs/range/test/
Dhas_range_iterator.cpp24 void test_has_range_iterator_impl(const bool expected_value) in test_has_range_iterator_impl() argument
26 BOOST_CHECK_EQUAL( boost::has_range_iterator<Container>::value, expected_value ); in test_has_range_iterator_impl()
30 void test_has_range_const_iterator_impl(const bool expected_value) in test_has_range_const_iterator_impl() argument
32 BOOST_CHECK_EQUAL( boost::has_range_const_iterator<Container>::value, expected_value ); in test_has_range_const_iterator_impl()
/third_party/boost/libs/geometry/index/test/algorithms/
Dtest_margin.hpp21 typename bgi::detail::default_margin_result<Geometry>::type expected_value) in test_margin() argument
36 BOOST_CHECK_CLOSE(value, expected_value, 0.0001); in test_margin()
41 typename bgi::detail::default_margin_result<Geometry>::type expected_value) in test_geometry() argument
45 test_margin(geometry, expected_value); in test_geometry()
Dtest_content.hpp22 typename bgi::detail::default_content_result<Geometry>::type expected_value) in test_content() argument
37 BOOST_CHECK_CLOSE(value, expected_value, 0.0001); in test_content()
42 typename bgi::detail::default_content_result<Geometry>::type expected_value) in test_geometry() argument
46 test_content(geometry, expected_value); in test_geometry()
Dtest_intersection_content.hpp19 typename bgi::detail::default_content_result<Geometry>::type expected_value) in test_intersection_content() argument
34 BOOST_CHECK_CLOSE(value, expected_value, 0.0001); in test_intersection_content()
39 typename bgi::detail::default_content_result<Geometry>::type expected_value) in test_geometry() argument
44 test_intersection_content(geometry1, geometry2, expected_value); in test_geometry()
Dtest_union_content.hpp19 typename bgi::detail::default_content_result<Geometry>::type expected_value) in test_union_content() argument
34 BOOST_CHECK_CLOSE(value, expected_value, 0.0001); in test_union_content()
39 typename bgi::detail::default_content_result<Geometry>::type expected_value) in test_geometry() argument
44 test_union_content(geometry1, geometry2, expected_value); in test_geometry()
Dis_valid.cpp23 void test(Geometry const& geometry, bool expected_value) in test() argument
38 BOOST_CHECK(value == expected_value); in test()
42 void test_box(std::string const& wkt, bool expected_value) in test_box() argument
46 test(box, expected_value); in test_box()
51 test(box, !expected_value); in test_box()
Dminmaxdist.cpp24 typename bg::default_distance_result<Point, Indexable>::type expected_value) in test() argument
41 BOOST_CHECK_CLOSE(value, expected_value, 0.0001); in test()
46 typename bg::default_distance_result<Point, Indexable>::type expected_value) in test_indexable() argument
50 test(pt, indexable, expected_value); in test_indexable()
/third_party/protobuf/python/google/protobuf/internal/
Dunknown_fields_test.py183 def InternalCheckUnknownField(self, name, expected_value): argument
194 self.assertEqual(expected_value, result_dict[field_descriptor])
196 def CheckUnknownField(self, name, unknown_fields, expected_value): argument
205 self.assertEqual(expected_value[0],
207 self.assertEqual(expected_value[1], unknown_field.data[0].wire_type)
208 self.assertEqual(expected_value[2], unknown_field.data[0].data)
213 self.assertIn(unknown_field.data, expected_value)
215 self.assertEqual(expected_value, unknown_field.data)
394 def CheckUnknownField(self, name, expected_value): argument
402 self.assertIn(field.data, expected_value)
[all …]
/third_party/ltp/testcases/kernel/security/integrity/ima/tests/
Dima_selinux.sh38 local measured_cap measured_value expected_value
48 expected_value=$(cat "$SELINUX_DIR/policy_capabilities/$measured_cap")
49 if [ "$measured_value" != "$expected_value" ]; then
50 tst_res TFAIL "$measured_cap: expected: $expected_value, got: $digest"
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cDirectStateAccessSamplersTests.cpp254 bool DefaultsTest::testSamplerIntegerParameter(glw::GLenum pname, glw::GLint expected_value) in testSamplerIntegerParameter() argument
275 if (expected_value != value) in testSamplerIntegerParameter()
279 << ", however " << expected_value << " was expected." in testSamplerIntegerParameter()
295 bool DefaultsTest::testSamplerFloatParameter(glw::GLenum pname, glw::GLfloat expected_value) in testSamplerFloatParameter() argument
306 if (de::abs(expected_value - value) > 0.015625f /* Precision */) in testSamplerFloatParameter()
310 << ", however " << expected_value << " was expected." in testSamplerFloatParameter()
325 bool DefaultsTest::testSamplerFloatVectorParameter(glw::GLenum pname, glw::GLfloat expected_value[4… in testSamplerFloatVectorParameter()
336 if ((de::abs(expected_value[0] - value[0]) > 0.015625f /* Precision */) || in testSamplerFloatVectorParameter()
337 (de::abs(expected_value[1] - value[1]) > 0.015625f /* Precision */) || in testSamplerFloatVectorParameter()
338 (de::abs(expected_value[2] - value[2]) > 0.015625f /* Precision */) || in testSamplerFloatVectorParameter()
[all …]
Dgl4cShaderImageLoadStoreTests.cpp1408 bool Write(GLenum internalformat, const T& write_value, const T& expected_value) in Write() argument
1438 if (!Equal(data[i], expected_value, internalformat)) in Write()
1444 << ". Value should be: " << ToString(expected_value) in Write()
1597 bool Read(GLenum internalformat, const T& value, const T& expected_value) in Read() argument
1601 … program = BuildProgram(src_vs, NULL, NULL, NULL, GenFS(internalformat, expected_value).c_str()); in Read()
1655 std::string GenFS(GLenum internalformat, const T& expected_value) in GenFS() argument
1662 << expected_value in GenFS()
1781 bool Write(GLenum internalformat, const T& write_value, const T& expected_value) in Write() argument
1820 if (!Equal(data[0], expected_value, internalformat)) in Write()
1826 << ". Value should be: " << ToString(expected_value) in Write()
[all …]
Dgl3cTextureSizePromotion.cpp871 glw::GLfloat expected_value = (channel == RED_COMPONENT) ? in checkDestinationTexture() local
876 if (fabs(pixel - expected_value) <= getMinPrecision(descriptor, channel)) in checkDestinationTexture()
887 << " channel with target " << target_name << ". Expected value = " << expected_value in checkDestinationTexture()
901 glw::GLfloat expected_value = isChannelTypeNone(descriptor, channel) ? in checkDestinationTexture() local
906 if (fabs(pixel - expected_value) <= getMinPrecision(descriptor, channel)) in checkDestinationTexture()
917 << " channel with target " << target_name << ". Expected value = " << expected_value in checkDestinationTexture()
932 glw::GLfloat expected_value = isChannelTypeNone(descriptor, channel) ? in checkDestinationTexture() local
937 if (fabs(pixel - expected_value) <= getMinPrecision(descriptor, channel)) in checkDestinationTexture()
948 << " channel with target " << target_name << ". Expected value = " << expected_value in checkDestinationTexture()
962 glw::GLfloat expected_value = isChannelTypeNone(descriptor, channel) ? in checkDestinationTexture() local
[all …]
Dgl4cDirectStateAccessProgramPipelinesTests.cpp285 bool DefaultsTest::testProgramPipelineParameter(glw::GLenum pname, glw::GLint expected_value) in testProgramPipelineParameter() argument
306 if (expected_value != value) in testProgramPipelineParameter()
309 << pname << " has returned " << value << ", however " << expected_value in testProgramPipelineParameter()
327 bool DefaultsTest::testProgramPipelineInfoLog(glw::GLchar* expected_value) in testProgramPipelineInfoLog() argument
346 if (DE_NULL == expected_value) in testProgramPipelineInfoLog()
361 if (0 != strcmp(log, expected_value)) in testProgramPipelineInfoLog()
365 << ", but is not the same as expected: " << expected_value << "." << tcu::TestLog::EndMessage; in testProgramPipelineInfoLog()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
Dconstants_test.cpp36 T expected_value; member
51 EXPECT_EQ(GetParam().expected_value, value.GetSignExtendedValue()); in TEST_P()
58 EXPECT_EQ(GetParam().expected_value, value.GetZeroExtendedValue()); in TEST_P()
/third_party/spirv-tools/test/opt/
Dconstants_test.cpp36 T expected_value; member
51 EXPECT_EQ(GetParam().expected_value, value.GetSignExtendedValue()); in TEST_P()
58 EXPECT_EQ(GetParam().expected_value, value.GetZeroExtendedValue()); in TEST_P()
/third_party/skia/third_party/externals/spirv-tools/test/opt/
Dconstants_test.cpp36 T expected_value; member
51 EXPECT_EQ(GetParam().expected_value, value.GetSignExtendedValue()); in TEST_P()
58 EXPECT_EQ(GetParam().expected_value, value.GetZeroExtendedValue()); in TEST_P()
/third_party/abseil-cpp/absl/base/internal/
Dendian_test.cc122 char expected_value[sizeof(host_value)]; in GBSwapHelper() local
123 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
126 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
128 << "Expected: 0x" << UnalignedLoad<T>(expected_value) << "; " in GBSwapHelper()
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
Dendian_test.cc122 char expected_value[sizeof(host_value)]; in GBSwapHelper() local
123 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
126 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
128 << "Expected: 0x" << UnalignedLoad<T>(expected_value) << "; " in GBSwapHelper()
/third_party/mbedtls/tests/suites/
Dtest_suite_asn1parse.function316 int expected_value, int expected_result )
325 TEST_EQUAL( val, expected_value );
377 long expected_value;
389 expected_value = strtol( expected_hex, NULL, 16 );
393 || expected_value > INT_MAX || expected_value < INT_MIN
401 if( expected_result == 0 && expected_value < 0 )
415 TEST_EQUAL( val, expected_value );
432 if( expected_value >= 0 )
479 long expected_value;
485 expected_value = strtol( expected_hex, NULL, 16 );
[all …]
/third_party/mesa3d/src/intel/tools/
Dintel_sanitize_gpu.c179 uint8_t expected_value; in padding_is_good() local
194 expected_value = handle & 0xFF; in padding_is_good()
196 if (expected_value != mapped[i]) { in padding_is_good()
200 expected_value = next_noise_value(expected_value); in padding_is_good()
/third_party/mesa3d/src/gallium/frontends/wgl/
Dstw_ext_pixelformat.c338 int expected_value) in score_pixelformats() argument
369 if (actual_value != expected_value) in score_pixelformats()
379 if (actual_value < expected_value) in score_pixelformats()
381 else if (actual_value > expected_value) in score_pixelformats()
382 scores[index].points -= (actual_value - expected_value) in score_pixelformats()

1234