Home
last modified time | relevance | path

Searched refs:expected_result (Results 1 – 25 of 182) sorted by relevance

12345678

/external/tensorflow/tensorflow/python/autograph/pyct/common_transformers/
Danf_test.py103 def expected_result(x, y, z): function
108 self.assert_body_anfs_as_expected(expected_result, test_function)
117 def expected_result(a, b, c, e, f, g): function
125 self.assert_body_anfs_as_expected(expected_result, test_function)
132 def expected_result(b, c, d, e): function
139 self.assert_body_anfs_as_expected(expected_result, test_function)
146 def expected_result(call_something, a, b, y, z, c, d, e, f, g, h, i): function
155 self.assert_body_anfs_as_expected(expected_result, test_function)
163 def expected_result(a, b, c): function
171 self.assert_body_anfs_as_expected(expected_result, test_function)
[all …]
/external/rust/crates/itertools/tests/
Dmerge_join.rs8 let expected_result: Vec<EitherOrBoth<u32, u32>> = vec![]; in empty() localVariable
11 assert_eq!(expected_result, actual_result); in empty()
18 let expected_result: Vec<EitherOrBoth<u32, u32>> = vec![ in left_only() localVariable
25 assert_eq!(expected_result, actual_result); in left_only()
32 let expected_result: Vec<EitherOrBoth<u32, u32>> = vec![ in right_only() localVariable
39 assert_eq!(expected_result, actual_result); in right_only()
46 let expected_result: Vec<EitherOrBoth<u32, u32>> = vec![ in first_left_then_right() localVariable
56 assert_eq!(expected_result, actual_result); in first_left_then_right()
63 let expected_result: Vec<EitherOrBoth<u32, u32>> = vec![ in first_right_then_left() localVariable
73 assert_eq!(expected_result, actual_result); in first_right_then_left()
[all …]
/external/vboot_reference/tests/
Dtest_common.c21 int TEST_EQ(int result, int expected_result, const char* testname) { in TEST_EQ() argument
22 if (result == expected_result) { in TEST_EQ()
28 expected_result, expected_result, result, result); in TEST_EQ()
47 int TEST_PTR_EQ(const void* result, const void* expected_result, in TEST_PTR_EQ() argument
49 if (result == expected_result) { in TEST_PTR_EQ()
54 fprintf(stderr, " Expected: 0x%lx, got: 0x%lx\n", (long)expected_result, in TEST_PTR_EQ()
75 int TEST_STR_EQ(const char* result, const char* expected_result, in TEST_STR_EQ() argument
78 if (!result || !expected_result) { in TEST_STR_EQ()
83 } else if (!strcmp(result, expected_result)) { in TEST_STR_EQ()
88 fprintf(stderr, " Expected: \"%s\", got: \"%s\"\n", expected_result, in TEST_STR_EQ()
Dtest_common.h14 int TEST_EQ(int result, int expected_result, const char* testname);
23 int TEST_PTR_EQ(const void* result, const void* expected_result,
29 int TEST_PTR_NEQ(const void* result, const void* expected_result,
34 int TEST_STR_EQ(const char* result, const char* expected_result,
/external/OpenCL-CTS/test_conformance/subgroups/
Dtest_subgroup_ballot.cpp49 cl_uint expected_result, device_result; in chk() local
83 expected_result = 1; in chk()
84 if (!compare(device_result, expected_result)) in chk()
91 expected_result); in chk()
167 cl_uint4 expected_result, device_result; in chk() local
234 bit_value ? expected_result = { 1, 0, 0, 1 } in chk()
235 : expected_result = { 0, 0, 0, 1 }; in chk()
239 bit_value ? expected_result = { 1, 0, 0, 2 } in chk()
240 : expected_result = { 0, 0, 0, 2 }; in chk()
244 if (!compare(device_result, expected_result)) in chk()
[all …]
/external/autotest/client/common_lib/
Dtest_unittest.py222 expected_result = {"Test": {"summary": {"units": "ms", "type": "scalar",
224 self.assertDictEqual(expected_result, json.loads(f.read()))
234 expected_result = {"Test": {"summary": {"units": "ms", "type": "scalar",
236 self.assertDictEqual(expected_result, json.loads(f.read()))
246 expected_result = {"Test": {"summary": {"units": "ms",
249 self.assertDictEqual(expected_result, json.loads(f.read()))
261 expected_result = {"Test": {"summary": {"units": "ms",
264 self.assertDictEqual(expected_result, json.loads(f.read()))
274 expected_result = {"Test": {"summary": {"units": "ms",
277 self.assertDictEqual(expected_result, json.loads(f.read()))
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Drfft2d_test.cc73 std::complex<float> expected_result[12] = { in TEST() local
76 EXPECT_THAT(model.GetOutput(), ElementsAreArray(expected_result)); in TEST()
91 std::complex<float> expected_result[12] = { in TEST() local
94 EXPECT_THAT(model.GetOutput(), ElementsAreArray(expected_result)); in TEST()
109 std::complex<float> expected_result[20] = { in TEST() local
119 EXPECT_THAT(model.GetOutput(), ElementsAreArray(expected_result)); in TEST()
135 std::complex<float> expected_result[12] = { in TEST() local
141 EXPECT_THAT(model.GetOutput(), ElementsAreArray(expected_result)); in TEST()
/external/openscreen/cast/common/certificate/
Dcast_crl_unittest.cc35 bool TestVerifyCertificate(TestStepResult expected_result, in TestVerifyCertificate() argument
44 (expected_result == kResultSuccess); in TestVerifyCertificate()
52 bool TestVerifyCRL(TestStepResult expected_result, in TestVerifyCRL() argument
59 bool success = (crl != nullptr) == (expected_result == kResultSuccess); in TestVerifyCRL()
69 bool TestVerifyRevocation(Error::Code expected_result, in TestVerifyRevocation() argument
89 EXPECT_EQ(expected_result, result.code()); in TestVerifyRevocation()
90 return expected_result == result.code(); in TestVerifyRevocation()
130 switch (test_case.expected_result()) { in RunTest()
/external/webrtc/modules/audio_mixer/
Daudio_frame_manipulator_unittest.cc43 const int16_t expected_result[total_samples] = {0, 0, 1, 1, 2, 2, 3, 3, 4, 4}; in TEST() local
46 std::equal(frame_data, frame_data + total_samples, expected_result)); in TEST()
60 const int16_t expected_result[total_samples] = {5, 4, 3, 2, 1}; in TEST() local
63 std::equal(frame_data, frame_data + total_samples, expected_result)); in TEST()
/external/tensorflow/tensorflow/python/kernel_tests/boosted_trees/
Dtraining_ops_test.py98 expected_result = """
145 self.assertProtoEquals(expected_result, tree_ensemble)
205 expected_result = """
254 self.assertProtoEquals(expected_result, tree_ensemble)
315 expected_result = """
363 self.assertProtoEquals(expected_result, tree_ensemble)
428 expected_result = """
497 self.assertProtoEquals(expected_result, tree_ensemble)
526 expected_result = """
541 self.assertProtoEquals(expected_result, tree_ensemble)
[all …]
/external/tflite-support/tensorflow_lite_support/custom_ops/python/
Dsentencepiece_tokenizer_test.py138 expected_result = [
142 self.assertAllEqual(tf_result, expected_result)
144 interpreter.get_tensor(output_details[0]["index"]), expected_result)
181 expected_result = [
184 self.assertAllEqual(tf_result, expected_result)
186 interpreter.get_tensor(output_details[0]["index"]), expected_result)
218 expected_result = 4000
219 self.assertEqual(tf_result, expected_result)
221 interpreter.get_tensor(output_details[0]["index"]), expected_result)
/external/mesa3d/src/intel/compiler/
Dtest_eu_validate.cpp196 bool expected_result; in TEST_P() member
226 EXPECT_EQ(test_case[i].expected_result, validate(p)); in TEST_P()
283 bool expected_result; in TEST_P() member
308 if (test_case[i].expected_result) { in TEST_P()
391 bool expected_result; in TEST_P() member
407 if (test_case[i].expected_result) { in TEST_P()
472 bool expected_result; in TEST_P() member
498 if (test_case[i].expected_result) { in TEST_P()
564 bool expected_result; member
577 EXPECT_EQ(test_case[i].expected_result, validate(p));
[all …]
/external/rust/crates/ring/tests/
Dconstant_time_tests.rs63 let expected_result = if i < len { in test_verify_slices_are_equal() localVariable
70 assert_eq!(a == b, expected_result.is_ok()); // Sanity check. in test_verify_slices_are_equal()
73 expected_result in test_verify_slices_are_equal()
77 expected_result in test_verify_slices_are_equal()
/external/openscreen/util/
Dinteger_division_unittest.cc24 int expected_result = first_expected_result; in TestRangeAboutZero() local
27 EXPECT_EQ(expected_result, function_to_test(Input(num), Input(denom))) in TestRangeAboutZero()
29 EXPECT_EQ(expected_result, function_to_test(Input(-num), Input(-denom))) in TestRangeAboutZero()
34 ++expected_result; in TestRangeAboutZero()
/external/tensorflow/tensorflow/python/kernel_tests/array_ops/
Dbatch_gather_op_test.py55 expected_result = np.array([3, 7])
56 np_val = self._buildParams(expected_result, dtype)
71 expected_result = np.array([[3], [15]])
72 np_val = self._buildParams(expected_result, dtype)
87 expected_result = np.array([[[2, 0], [7, 5]], [[10, 8], [11, 15]]])
88 np_val = self._buildParams(expected_result, dtype)
/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dtransformation_replace_boolean_constant_with_constant_binary.cpp179 bool expected_result = (boolean_constant->opcode() == SpvOpConstantTrue); in IsApplicable() local
191 expected_result)) { in IsApplicable()
198 expected_result)) { in IsApplicable()
210 binary_opcode, expected_result)) { in IsApplicable()
217 binary_opcode, expected_result)) { in IsApplicable()
225 binary_opcode, expected_result)) { in IsApplicable()
232 binary_opcode, expected_result)) { in IsApplicable()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/fuzz/
Dtransformation_replace_boolean_constant_with_constant_binary.cpp179 bool expected_result = (boolean_constant->opcode() == SpvOpConstantTrue); in IsApplicable() local
191 expected_result)) { in IsApplicable()
198 expected_result)) { in IsApplicable()
210 binary_opcode, expected_result)) { in IsApplicable()
217 binary_opcode, expected_result)) { in IsApplicable()
225 binary_opcode, expected_result)) { in IsApplicable()
232 binary_opcode, expected_result)) { in IsApplicable()
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_replace_boolean_constant_with_constant_binary.cpp179 bool expected_result = (boolean_constant->opcode() == SpvOpConstantTrue); in IsApplicable() local
191 expected_result)) { in IsApplicable()
198 expected_result)) { in IsApplicable()
210 binary_opcode, expected_result)) { in IsApplicable()
217 binary_opcode, expected_result)) { in IsApplicable()
225 binary_opcode, expected_result)) { in IsApplicable()
232 binary_opcode, expected_result)) { in IsApplicable()
/external/compiler-rt/test/builtins/Unit/
Dudivmodsi4_test.c22 su_int expected_result, su_int expected_rem) in test__udivmodsi4() argument
26 if (result != expected_result) { in test__udivmodsi4()
28 a, b, result, expected_result); in test__udivmodsi4()
Ddivmodsi4_test.c23 si_int expected_result, si_int expected_rem) in test__divmodsi4() argument
27 if (result != expected_result) { in test__divmodsi4()
29 a, b, result, expected_result); in test__divmodsi4()
/external/llvm-project/compiler-rt/test/builtins/Unit/
Dudivmodsi4_test.c12 su_int expected_result, su_int expected_rem) in test__udivmodsi4() argument
16 if (result != expected_result) { in test__udivmodsi4()
18 a, b, result, expected_result); in test__udivmodsi4()
Ddivmodsi4_test.c13 si_int expected_result, si_int expected_rem) in test__divmodsi4() argument
17 if (result != expected_result) { in test__divmodsi4()
19 a, b, result, expected_result); in test__divmodsi4()
/external/llvm-project/compiler-rt/test/builtins/Unit/arm/
Daeabi_uidivmod_test.c13 su_int expected_result, su_int expected_rem) in test__aeabi_uidivmod() argument
19 if (result != expected_result) { in test__aeabi_uidivmod()
21 a, b, result, expected_result); in test__aeabi_uidivmod()
Daeabi_idivmod_test.c13 si_int expected_result, si_int expected_rem) in test__aeabi_idivmod() argument
19 if (result != expected_result) { in test__aeabi_idivmod()
21 a, b, result, expected_result); in test__aeabi_idivmod()
/external/autotest/client/bin/
Dfsinfo_unittest.py108 expected_result = {'-q': None,
114 self.assertEqual(expected_result, result)
120 expected_result = ['a', 'b', 'd', 'g', 'h', 'i']
122 self.assertEqual(expected_result, result)

12345678