Home
last modified time | relevance | path

Searched refs:check_string (Results 1 – 25 of 28) sorted by relevance

12

/third_party/glib/glib/tests/
Dfileutils.c63 check_string (gchar *str, const gchar *expected) in check_string() function
74 check_string (g_build_path ("", "", NULL), ""); in test_build_path()
75 check_string (g_build_path ("", "x", NULL), "x"); in test_build_path()
76 check_string (g_build_path ("", "x", "y", NULL), "xy"); in test_build_path()
77 check_string (g_build_path ("", "x", "y", "z", NULL), "xyz"); in test_build_path()
80 check_string (g_build_path (":", ":", NULL), ":"); in test_build_path()
81 check_string (g_build_path (":", ":x", NULL), ":x"); in test_build_path()
82 check_string (g_build_path (":", "x:", NULL), "x:"); in test_build_path()
83 check_string (g_build_path (":", "", "x", NULL), "x"); in test_build_path()
84 check_string (g_build_path (":", "", ":x", NULL), ":x"); in test_build_path()
[all …]
/third_party/flutter/skia/tests/
DJSONTest.cpp179 static void check_string(skiatest::Reporter* reporter, const Value& v, const char* s) { in check_string() function
210 check_string(reporter, v, nullptr); in DEF_TEST()
222 check_string(reporter, v, nullptr); in DEF_TEST()
234 check_string(reporter, v, nullptr); in DEF_TEST()
246 check_string(reporter, v, nullptr); in DEF_TEST()
258 check_string(reporter, v, nullptr); in DEF_TEST()
270 check_string(reporter, v, "foo"); in DEF_TEST()
282 check_string(reporter, v, nullptr); in DEF_TEST()
298 check_string(reporter, v, nullptr); in DEF_TEST()
304 check_string(reporter, m0.fKey, "kk1"); in DEF_TEST()
[all …]
/third_party/skia/tests/
DJSONTest.cpp179 static void check_string(skiatest::Reporter* reporter, const Value& v, const char* s) { in check_string() function
210 check_string(reporter, v, nullptr); in DEF_TEST()
222 check_string(reporter, v, nullptr); in DEF_TEST()
234 check_string(reporter, v, nullptr); in DEF_TEST()
246 check_string(reporter, v, nullptr); in DEF_TEST()
258 check_string(reporter, v, nullptr); in DEF_TEST()
270 check_string(reporter, v, "foo"); in DEF_TEST()
282 check_string(reporter, v, nullptr); in DEF_TEST()
298 check_string(reporter, v, nullptr); in DEF_TEST()
304 check_string(reporter, m0.fKey, "kk1"); in DEF_TEST()
[all …]
/third_party/boost/libs/test/example/
Dunit_test_example_11.cpp24 void check_string( std::string const& s ) in check_string() function
42 BOOST_PARAM_TEST_CASE( &check_string, (std::string const*)params, params+3 ) ); in init_unit_test_suite()
/third_party/mindspore/mindspore/nn/layer/
Dpooling.py32 …self.pad_mode = validator.check_string(pad_mode.upper(), ['VALID', 'SAME'], 'pad_mode', self.cls_n…
33 self.format = validator.check_string(data_format, ['NCHW', 'NHWC'], 'format', self.cls_name)
207 …self.pad_mode = validator.check_string(pad_mode.upper(), ['VALID', 'SAME'], 'pad_mode', self.cls_n…
371 …self.pad_mode = validator.check_string(pad_mode.upper(), ['VALID', 'SAME'], 'pad_mode', self.cls_n…
Dconv.py59 …self.format = Validator.check_string(data_format, ['NCHW', 'NHWC', 'NCDHW'], 'format', self.cls_na…
436 Validator.check_string(pad_mode, ['valid', 'same', 'pad'], 'pad_mode', self.cls_name)
1043 Validator.check_string(pad_mode, ['valid', 'same', 'pad'], 'pad_mode', self.cls_name)
1237 Validator.check_string(pad_mode, ['valid', 'same', 'pad'], 'pad_mode', self.cls_name)
Dembedding.py235 validator.check_string(target, ['CPU', 'DEVICE'], 'target', self.cls_name)
499 validator.check_string(operator, ['SUM', 'MAX', 'MEAN'], 'operator', self.cls_name)
Dnormalization.py71 self.format = validator.check_string(data_format, ['NCHW', 'NHWC'], 'format', self.cls_name)
573 self.format = validator.check_string(data_format, ['NCDHW'], 'format', self.cls_name)
Drnns.py621 validator.check_string(nonlinearity, self._non_linearity, "nonlinearity", self.cls_name)
Dbasic.py803 … Validator.check_string(self.mode, ["CONSTANT", "REFLECT", "SYMMETRIC"], 'mode', self.cls_name)
/third_party/mindspore/mindspore/nn/metrics/
Dcosine_similarity.py56 self.similarity = validator.check_string(similarity, similarity_list, "similarity")
58 self.reduction = validator.check_string(reduction, reduction_list, "reduction")
Dmean_surface_distance.py56 …self.distance_metric = validator.check_string(distance_metric, self.distance_metric_list, "distanc…
Droot_mean_square_surface_distance.py58 …self.distance_metric = validator.check_string(distance_metric, self.distance_metric_list, "distanc…
Dhausdorff_distance.py109 … self.distance_metric = validator.check_string(distance_metric, string_list, "distance_metric")
Dconfusion_matrix.py205 self.decrease = validator.check_string(decrease, decrease_list, "decrease")
/third_party/boost/libs/python/test/
Dextract.cpp89 bool check_string(object x) { return extract<std::string>(x).check(); } in check_string() function
116 def("check_string", check_string); in BOOST_PYTHON_MODULE()
/third_party/mindspore/mindspore/ops/operations/
D_grad_ops.py185 … self.data_format = validator.check_string(data_format, ['NCHW', 'NHWC'], 'format', self.name)
219 … self.format = validator.check_string(data_format, ['NCHW', 'NHWC', 'NCDHW'], 'format', self.name)
232 …self.reduction = validator.check_string(reduction, ['none', 'mean', 'sum'], 'reduction', self.name)
249 …self.reduction = validator.check_string(reduction, ['none', 'mean', 'sum'], 'reduction', self.name)
363 …self.pad_mode = validator.check_string(pad_mode.lower(), ['valid', 'same', 'pad'], 'pad_mode', sel…
375 self.format = validator.check_string(data_format, ['NCDHW'], 'format', self.name)
483 self.format = validator.check_string(data_format, ['NCHW', 'NHWC'], 'format', self.name)
768 … self.pad_mode = validator.check_string(pad_mode.upper(), ['VALID', 'SAME'], 'pad_mode', self.name)
770 self.format = validator.check_string(data_format, ['NCHW', 'NHWC'], 'format', self.name)
872 self.format = validator.check_string(data_format, ['NCDHW'], 'format', self.name)
[all …]
Dnn_ops.py1265 self.format = validator.check_string(data_format, ['NCHW', 'NHWC'], 'format', self.name)
1418 … self.pad_mode = validator.check_string(pad_mode, ['valid', 'same', 'pad'], 'pad_mode', self.name)
1428 self.format = validator.check_string(data_format, ['NCHW', 'NHWC'], 'format', self.name)
1549 … self.pad_mode = validator.check_string(pad_mode, ['valid', 'same', 'pad'], 'pad_mode', self.name)
1634 … self.pad_mode = validator.check_string(pad_mode.upper(), ['VALID', 'SAME'], 'pad_mode', self.name)
1637 self.format = validator.check_string(data_format, ['NCHW', 'NHWC'], 'format', self.name)
1914 …self.pad_mode = validator.check_string(pad_mode.upper(), ['VALID', 'SAME', 'PAD'], 'pad_mode', sel…
1918 self.data_format = validator.check_string(data_format, ['NCDHW'], 'data_format', self.name)
2159 self.format = validator.check_string(data_format, ['NCHW', 'NHWC'], 'format', self.name)
2178 … self.pad_mode = validator.check_string(pad_mode, ['valid', 'same', 'pad'], 'pad_mode', self.name)
[all …]
D_thor_ops.py486 … self.pad_mode = validator.check_string(pad_mode, ['valid', 'same', 'pad'], 'pad_mode', self.name)
567 …self.padding_mode = validator.check_string(padding_mode, ['VALID', 'SAME'], 'padding_mode', self.n…
638 self.pad_mode = validator.check_string(pad_mode, ['same'], 'pad_mode', self.name)
Dimage_ops.py94 validator.check_string(method, ["bilinear", "nearest", "bilinear_v2"], "method", self.name)
D_inner_ops.py75 … self.padding = validator.check_string(padding.upper(), ['VALID', 'SAME'], 'padding', self.name)
219 self.round_mode = validator.check_string(round_mode, ["Round", "Floor", "Ceil", "Trunc"],
/third_party/boost/libs/range/test/
Dstring.cpp214 void check_string() in check_string() function
272 test->add( BOOST_TEST_CASE( &check_string ) ); in init_unit_test_suite()
/third_party/python/Lib/test/
Dtest_cmd_line.py854 def check_string(self, code): member in SyntaxErrorTests
862 self.check_string(b"(1+2+3")
865 self.check_string(br"'\u1f'")
Dtest_xml_etree.py204 def check_string(string): function
232 check_string(element.tag)
235 check_string(element.text)
237 check_string(element.tail)
/third_party/mindspore/mindspore/
D_checkparam.py431 def check_string(arg_value, valid_values, arg_name=None, prim_name=None): member in Validator

12