Home
last modified time | relevance | path

Searched refs:expected_value (Results 1 – 25 of 80) 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/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/node/test/fixtures/wpt/common/
Dstringifiers.js30 var expected_value;
32 expected_value = aObject[aAttribute];
33 assert_equals(aObject[aAttribute], expected_value,
45 assert_equals(aObject.toString(), expected_value);
55 assert_equals(aObject.toString(), expected_value);
/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/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.cpp1407 bool Write(GLenum internalformat, const T& write_value, const T& expected_value) in Write() argument
1437 if (!Equal(data[i], expected_value, internalformat)) in Write()
1443 << ". Value should be: " << ToString(expected_value) in Write()
1596 bool Read(GLenum internalformat, const T& value, const T& expected_value) in Read() argument
1600 … program = BuildProgram(src_vs, NULL, NULL, NULL, GenFS(internalformat, expected_value).c_str()); in Read()
1654 std::string GenFS(GLenum internalformat, const T& expected_value) in GenFS() argument
1661 << expected_value in GenFS()
1780 bool Write(GLenum internalformat, const T& write_value, const T& expected_value) in Write() argument
1819 if (!Equal(data[0], expected_value, internalformat)) in Write()
1825 << ". 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()
Dgl4cPipelineStatisticsQueryTests.cpp1246 glw::GLuint64 expected_value = 0; in verifyResultValues() local
1248 expected_value = expected_values[n_expected_value]; in verifyResultValues()
1251 (glw::GLuint64)run_result.result_int == expected_value) || in verifyResultValues()
1253 (glw::GLuint64)run_result.result_int >= expected_value)) in verifyResultValues()
1259 run_result.result_int64 == (glw::GLint64)expected_value) || in verifyResultValues()
1261 run_result.result_int64 >= (glw::GLint64)expected_value))) in verifyResultValues()
1267 (glw::GLuint64)run_result.result_uint == expected_value) || in verifyResultValues()
1269 (glw::GLuint64)run_result.result_uint >= expected_value)) in verifyResultValues()
1275 …erification_type == VERIFICATION_TYPE_EXACT_MATCH && run_result.result_uint64 == expected_value) || in verifyResultValues()
1276 …ication_type == VERIFICATION_TYPE_EQUAL_OR_GREATER && run_result.result_uint64 >= expected_value))) in verifyResultValues()
[all …]
Dgl4cContextFlushControlTests.cpp145 …ntextFlushControl::CoverageTest::testQuery(glu::RenderContext& context, glw::GLenum expected_value) in testQuery() argument
157 …glw::GLboolean expected_bool_value = (glw::GLboolean)de::min((glw::GLint)expected_value, (glw::GLi… in testQuery()
179 if ((expected_value == value_i) && (expected_value == value_i64) && (expected_value == value_f) && in testQuery()
180 (expected_value == value_d) && (expected_bool_value == value_b)) in testQuery()
/third_party/ltp/testcases/kernel/security/integrity/ima/tests/
Dima_selinux.sh35 local measured_cap measured_value expected_value
45 expected_value=$(cat "$SELINUX_DIR/policy_capabilities/$measured_cap")
46 if [ "$measured_value" != "$expected_value" ]; then
47 tst_res TFAIL "$measured_cap: expected: $expected_value, got: $digest"
/third_party/node/deps/v8/src/builtins/
Dbuiltins-wasm-gen.cc64 auto expected_value = UncheckedParameter<Int32T>(Descriptor::kExpectedValue); in TF_BUILTIN() local
65 TNode<Number> expected_value_number = ChangeInt32ToTagged(expected_value); in TF_BUILTIN()
93 TNode<BigInt> expected_value = in TF_BUILTIN() local
105 address_number, expected_value, timeout)); in TF_BUILTIN()
/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/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/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/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.function308 int expected_value, int expected_result)
316 TEST_EQUAL(val, expected_value);
368 long expected_value;
380 expected_value = strtol(expected_hex, NULL, 16);
384 || expected_value > INT_MAX || expected_value < INT_MIN
391 if (expected_result == 0 && expected_value < 0) {
403 TEST_EQUAL(val, expected_value);
418 if (expected_value >= 0) {
462 long expected_value;
468 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()
/third_party/spirv-tools/test/
Dhex_float_test.cpp1105 HexFloat<FloatProxy<T>> expected_value; member
1118 EXPECT_THAT(parsed_value.value(), Eq(GetParam().expected_value.value())) in TEST_P()
1127 T expected_value) { in BadFloatParseCase() argument
1128 HexFloat<FloatProxy<T>> proxy_expected_value(expected_value); in BadFloatParseCase()
1135 T expected_value) { in GoodFloatParseCase() argument
1136 HexFloat<FloatProxy<T>> proxy_expected_value(expected_value); in GoodFloatParseCase()
1185 EXPECT_THAT(parsed_value.value(), Eq(GetParam().expected_value.value())) in TEST_P()
1222 T expected_value; member
1234 EXPECT_THAT(value.value().getAsFloat(), GetParam().expected_value); in TEST_P()
1261 EXPECT_THAT(value.value().getAsFloat(), Eq(GetParam().expected_value)); in TEST_P()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/
Dhex_float_test.cpp1105 HexFloat<FloatProxy<T>> expected_value; member
1118 EXPECT_THAT(parsed_value.value(), Eq(GetParam().expected_value.value())) in TEST_P()
1127 T expected_value) { in BadFloatParseCase() argument
1128 HexFloat<FloatProxy<T>> proxy_expected_value(expected_value); in BadFloatParseCase()
1135 T expected_value) { in GoodFloatParseCase() argument
1136 HexFloat<FloatProxy<T>> proxy_expected_value(expected_value); in GoodFloatParseCase()
1185 EXPECT_THAT(parsed_value.value(), Eq(GetParam().expected_value.value())) in TEST_P()
1222 T expected_value; member
1234 EXPECT_THAT(value.value().getAsFloat(), GetParam().expected_value); in TEST_P()
1261 EXPECT_THAT(value.value().getAsFloat(), Eq(GetParam().expected_value)); in TEST_P()
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/
Dhex_float_test.cpp1105 HexFloat<FloatProxy<T>> expected_value; member
1118 EXPECT_THAT(parsed_value.value(), Eq(GetParam().expected_value.value())) in TEST_P()
1127 T expected_value) { in BadFloatParseCase() argument
1128 HexFloat<FloatProxy<T>> proxy_expected_value(expected_value); in BadFloatParseCase()
1135 T expected_value) { in GoodFloatParseCase() argument
1136 HexFloat<FloatProxy<T>> proxy_expected_value(expected_value); in GoodFloatParseCase()
1185 EXPECT_THAT(parsed_value.value(), Eq(GetParam().expected_value.value())) in TEST_P()
1222 T expected_value; member
1234 EXPECT_THAT(value.value().getAsFloat(), GetParam().expected_value); in TEST_P()
1261 EXPECT_THAT(value.value().getAsFloat(), Eq(GetParam().expected_value)); in TEST_P()
[all …]
/third_party/glslang/Test/
DfloatBitsToInt.vert3 uniform int expected_value;
10 if (expected_value != ret_val){ result = vec4(0.0, 0.0, 0.0, 0.0); }
/third_party/protobuf/src/google/protobuf/io/
Dcoded_stream_unittest.cc213 uint32 expected_value = static_cast<uint32>(kVarintCases_case.value); in TEST_2D() local
214 EXPECT_EQ(expected_value, coded_input.ReadTag()); in TEST_2D()
216 EXPECT_TRUE(coded_input.LastTagWas(expected_value)); in TEST_2D()
217 EXPECT_FALSE(coded_input.LastTagWas(expected_value + 1)); in TEST_2D()
265 uint32 expected_value = static_cast<uint32>(kVarintCases_case.value); in TEST_1D() local
269 EXPECT_FALSE(coded_input.ExpectTag(expected_value + 1)); in TEST_1D()
270 EXPECT_TRUE(coded_input.ExpectTag(expected_value)); in TEST_1D()
272 EXPECT_FALSE(coded_input.ExpectTag(expected_value)); in TEST_1D()
286 const uint32 expected_value = static_cast<uint32>(kVarintCases_case.value); in TEST_1D() local
291 buffer_, expected_value + 1)); in TEST_1D()
[all …]

1234