Home
last modified time | relevance | path

Searched refs:tuple (Results 1 - 25 of 1115) sorted by relevance

12345678910>>...45

/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DNumberFormatDataDrivenTest.java125 public String format(DataDrivenNumberFormatTestData tuple) {
126 DecimalFormat fmt = createDecimalFormat(tuple);
127 String actual = fmt.format(toNumber(tuple.format));
128 String expected = tuple.output;
136 public String toPattern(DataDrivenNumberFormatTestData tuple) {
137 DecimalFormat fmt = createDecimalFormat(tuple);
139 if (tuple.toPattern != null) {
140 String expected = tuple.toPattern;
146 if (tuple.toLocalizedPattern != null) {
147 String expected = tuple
465 propertiesFromTuple( DataDrivenNumberFormatTestData tuple, DecimalFormatProperties properties) propertiesFromTuple() argument
[all...]
H A DDataDrivenNumberFormatTestUtility.java47 * @param tuple contains the parameters of the format test.
49 public String format(DataDrivenNumberFormatTestData tuple) { in format() argument
50 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in format()
58 * @param tuple contains the parameters of the format test.
60 public String toPattern(DataDrivenNumberFormatTestData tuple) { in toPattern() argument
61 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in toPattern()
69 * @param tuple contains the parameters of the format test.
71 public String parse(DataDrivenNumberFormatTestData tuple) { in parse() argument
82 parseCurrency(DataDrivenNumberFormatTestData tuple) parseCurrency() argument
93 select(DataDrivenNumberFormatTestData tuple) select() argument
110 private DataDrivenNumberFormatTestData tuple = new DataDrivenNumberFormatTestData(); global() field in DataDrivenNumberFormatTestUtility
369 isPass(DataDrivenNumberFormatTestData tuple) isPass() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DNumberFormatDataDrivenTest.java128 public String format(DataDrivenNumberFormatTestData tuple) {
129 DecimalFormat fmt = createDecimalFormat(tuple);
130 String actual = fmt.format(toNumber(tuple.format));
131 String expected = tuple.output;
139 public String toPattern(DataDrivenNumberFormatTestData tuple) {
140 DecimalFormat fmt = createDecimalFormat(tuple);
142 if (tuple.toPattern != null) {
143 String expected = tuple.toPattern;
149 if (tuple.toLocalizedPattern != null) {
150 String expected = tuple
468 propertiesFromTuple( DataDrivenNumberFormatTestData tuple, DecimalFormatProperties properties) propertiesFromTuple() argument
[all...]
H A DDataDrivenNumberFormatTestUtility.java50 * @param tuple contains the parameters of the format test.
52 public String format(DataDrivenNumberFormatTestData tuple) { in format() argument
53 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in format()
61 * @param tuple contains the parameters of the format test.
63 public String toPattern(DataDrivenNumberFormatTestData tuple) { in toPattern() argument
64 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in toPattern()
72 * @param tuple contains the parameters of the format test.
74 public String parse(DataDrivenNumberFormatTestData tuple) { in parse() argument
85 parseCurrency(DataDrivenNumberFormatTestData tuple) parseCurrency() argument
96 select(DataDrivenNumberFormatTestData tuple) select() argument
113 private DataDrivenNumberFormatTestData tuple = new DataDrivenNumberFormatTestData(); global() field in DataDrivenNumberFormatTestUtility
372 isPass(DataDrivenNumberFormatTestData tuple) isPass() argument
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dnumfmtdatadriventest.cpp69 static void adjustDecimalFormat(const NumberFormatTestTuple& tuple, DecimalFormat& fmt, in adjustDecimalFormat() argument
71 if (tuple.minIntegerDigitsFlag) { in adjustDecimalFormat()
72 fmt.setMinimumIntegerDigits(tuple.minIntegerDigits); in adjustDecimalFormat()
74 if (tuple.maxIntegerDigitsFlag) { in adjustDecimalFormat()
75 fmt.setMaximumIntegerDigits(tuple.maxIntegerDigits); in adjustDecimalFormat()
77 if (tuple.minFractionDigitsFlag) { in adjustDecimalFormat()
78 fmt.setMinimumFractionDigits(tuple.minFractionDigits); in adjustDecimalFormat()
80 if (tuple.maxFractionDigitsFlag) { in adjustDecimalFormat()
81 fmt.setMaximumFractionDigits(tuple.maxFractionDigits); in adjustDecimalFormat()
83 if (tuple in adjustDecimalFormat()
217 newDecimalFormat(const NumberFormatTestTuple& tuple, UErrorCode& status) newDecimalFormat() argument
227 isFormatPass(const NumberFormatTestTuple& tuple, UnicodeString& appendErrorMessage, UErrorCode& status) isFormatPass() argument
291 isToPatternPass(const NumberFormatTestTuple& tuple, UnicodeString& appendErrorMessage, UErrorCode& status) isToPatternPass() argument
324 isParsePass(const NumberFormatTestTuple& tuple, UnicodeString& appendErrorMessage, UErrorCode& status) isParsePass() argument
399 isParseCurrencyPass(const NumberFormatTestTuple& tuple, UnicodeString& appendErrorMessage, UErrorCode& status) isParseCurrencyPass() argument
458 NumberFormatTestTuple tuple; TestNumberFormatTestTuple() local
[all...]
H A Ddatadrivennumberformattestsuite.cpp210 const NumberFormatTestTuple &tuple, in isPass()
217 if (tuple.formatFlag && tuple.outputFlag) { in isPass()
220 tuple, in isPass()
226 else if (tuple.toPatternFlag || tuple.toLocalizedPatternFlag) { in isPass()
227 result = isToPatternPass(tuple, appendErrorMessage, status); in isPass()
228 } else if (tuple.parseFlag && tuple.outputFlag && tuple in isPass()
209 isPass( const NumberFormatTestTuple &tuple, UnicodeString &appendErrorMessage, UErrorCode &status) isPass() argument
262 isFormatPass( const NumberFormatTestTuple &tuple, UObject * , UnicodeString &appendErrorMessage, UErrorCode &status) isFormatPass() argument
[all...]
H A Ddatadrivennumberformattestsuite.h51 * @param tuple the test data for current test. The format method can
59 const NumberFormatTestTuple &tuple,
67 * @param tuple the test data for current test. The format method can
80 const NumberFormatTestTuple &tuple,
94 const NumberFormatTestTuple &tuple,
101 const NumberFormatTestTuple &tuple,
109 const NumberFormatTestTuple &tuple,
117 const NumberFormatTestTuple &tuple,
139 const NumberFormatTestTuple &tuple,
/third_party/python/Lib/test/
H A Dtest_genericalias.py59 # Unpacked tuple using `*`
60 (*tuple[int],)[0],
61 (*tuple[T],)[0],
62 (*tuple[int, str],)[0],
63 (*tuple[int, ...],)[0],
64 (*tuple[T, ...],)[0],
65 tuple[*tuple[int, ...]],
66 tuple[*tuple[
[all...]
H A Dtest_tuple.py7 # For tuple hashes, we normally only run a test to ensure that we get
19 type2test = tuple
23 msg = "tuple indices must be integers or slices"
30 self.assertEqual(tuple(), ())
32 t0_3_bis = tuple(t0_3)
34 self.assertEqual(tuple([]), ())
35 self.assertEqual(tuple([0, 1, 2, 3]), (0, 1, 2, 3))
36 self.assertEqual(tuple(''), ())
37 self.assertEqual(tuple('spam'), ('s', 'p', 'a', 'm'))
38 self.assertEqual(tuple(
[all...]
/third_party/mesa3d/src/panfrost/bifrost/
H A Dbi_schedule.c50 /* State of a single tuple and clause under construction */
58 * "forced" for the next scheduled tuple, provided such a tuple
63 /* The previous tuple scheduled (= the next tuple executed in the
72 /* Is this the last tuple in the clause */
78 /* Reads for previous (succeeding) tuple */
83 /* Register slot state for current tuple */
86 /* Constants are shared in the tuple. If constant_count is nonzero, it
89 * but within a tuple, tha
321 bi_lower_cubeface(bi_context *ctx, struct bi_clause_state *clause, struct bi_tuple_state *tuple) bi_lower_cubeface() argument
344 bi_lower_atom_c(bi_context *ctx, struct bi_clause_state *clause, struct bi_tuple_state *tuple) bi_lower_atom_c() argument
363 bi_lower_atom_c1(bi_context *ctx, struct bi_clause_state *clause, struct bi_tuple_state *tuple) bi_lower_atom_c1() argument
384 bi_lower_seg_add(bi_context *ctx, struct bi_clause_state *clause, struct bi_tuple_state *tuple) bi_lower_seg_add() argument
404 bi_lower_dtsel(bi_context *ctx, struct bi_clause_state *clause, struct bi_tuple_state *tuple) bi_lower_dtsel() argument
786 bi_update_fau(struct bi_clause_state *clause, struct bi_tuple_state *tuple, bi_instr *instr, bool fma, bool destructive) bi_update_fau() argument
1035 bi_instr_schedulable(bi_instr *instr, struct bi_clause_state *clause, struct bi_tuple_state *tuple, uint64_t live_after_temp, bool fma) bi_instr_schedulable() argument
1151 bi_instr_cost(bi_instr *instr, struct bi_tuple_state *tuple) bi_instr_cost() argument
1175 bi_choose_index(struct bi_worklist st, struct bi_clause_state *clause, struct bi_tuple_state *tuple, uint64_t live_after_temp, bool fma) bi_choose_index() argument
1207 bi_pop_instr(struct bi_clause_state *clause, struct bi_tuple_state *tuple, bi_instr *instr, uint64_t live_after_temp, bool fma) bi_pop_instr() argument
1237 bi_take_instr(bi_context *ctx, struct bi_worklist st, struct bi_clause_state *clause, struct bi_tuple_state *tuple, uint64_t live_after_temp, bool fma) bi_take_instr() argument
1351 bi_rewrite_fau_to_pass(bi_tuple *tuple) bi_rewrite_fau_to_pass() argument
1379 bi_rewrite_constants_to_pass(bi_tuple *tuple, uint64_t constant, bool pcrel) bi_rewrite_constants_to_pass() argument
1415 bi_get_const_state(struct bi_tuple_state *tuple) bi_get_const_state() argument
1668 bi_tuple *tuple = NULL; bi_schedule_clause() local
1819 bi_tuple *tuple = &clause->tuples[i]; bi_schedule_clause() local
1847 bi_tuple *tuple = &clause->tuples[i]; bi_schedule_clause() local
[all...]
H A Dbi_pack.c321 bi_pack_tuple(bi_clause *clause, bi_tuple *tuple, bi_tuple *prev, bool first_tuple, gl_shader_stage stage) in bi_pack_tuple() argument
323 bi_assign_slots(tuple, prev); in bi_pack_tuple()
324 tuple->regs.fau_idx = tuple->fau_idx; in bi_pack_tuple()
325 tuple->regs.first_instruction = first_tuple; in bi_pack_tuple()
327 bi_flip_slots(&tuple->regs); in bi_pack_tuple()
329 bool sr_read = tuple->add && in bi_pack_tuple()
330 bi_opcode_props[(tuple->add)->op].sr_read; in bi_pack_tuple()
332 uint64_t reg = bi_pack_registers(tuple->regs); in bi_pack_tuple()
333 uint64_t fma = bi_pack_fma(tuple in bi_pack_tuple()
462 struct bi_packed_tuple tuple = tuples[val]; bi_clause_upper() local
490 struct bi_packed_tuple tuple = tuples[val]; bi_pack_tuple_bits() local
719 const bi_tuple *tuple = &clause->tuples[clause->tuple_count - 1]; bi_collect_blend_ret_addr() local
[all...]
/third_party/typescript/tests/baselines/reference/
H A DdestructuringTuple.js2 declare var tuple: [boolean, number, ...string[]];
4 const [a, b, c, ...rest] = tuple;
6 declare var receiver: typeof tuple;
8 [...receiver] = tuple;
19 var a = tuple[0], b = tuple[1], c = tuple[2], rest = tuple.slice(3);
20 receiver = tuple.slice(0);
H A Dfor-of36.js2 var tuple: [string, boolean] = ["", true]; variable
3 for (var v of tuple) {
8 var tuple = ["", true]; variable
9 for (var v of tuple) {
H A DES5For-ofTypeCheck3.js2 var tuple: [string, number] = ["", 0]; variable
3 for (var v of tuple) { }
6 var tuple = ["", 0]; variable
7 for (var _i = 0, tuple_1 = tuple; _i < tuple_1.length; _i++) {
H A DrestElementWithAssignmentPattern3.js3 var tuple: [string, number] = ["", 1]; variable
4 [...[a, b = 0]] = tuple;
9 var tuple = ["", 1]; variable
10 _a = tuple.slice(0), a = _a[0], _b = _a[1], b = _b === void 0 ? 0 : _b;
/third_party/node/test/parallel/
H A Dtest-process-hrtime.js26 // The default behavior, return an Array "tuple" of numbers
27 const tuple = process.hrtime();
30 validateTuple(tuple);
32 // Validate that passing an existing tuple returns another valid tuple
33 validateTuple(process.hrtime(tuple));
66 function validateTuple(tuple) {
67 assert(Array.isArray(tuple));
68 assert.strictEqual(tuple.length, 2);
69 assert(Number.isInteger(tuple[
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/utility/
H A Dutility_test.cc19 #include <tuple>
143 std::vector<std::string> TupStringVec(const std::tuple<Ts...>& tup) {
234 TEST(ApplyTest, VoidResult) { absl::apply(NoOp, std::tuple<>()); }
254 EXPECT_EQ("&", absl::apply(f, std::tuple<>{}));
257 EXPECT_EQ("const&", absl::apply(cf, std::tuple<>{}));
260 EXPECT_EQ("&&", absl::apply(std::move(f), std::tuple<>{}));
278 std::tuple<std::unique_ptr<Class>&, int, int>(p, 3, 2)));
280 std::tuple<Class*, int, int>(p.get(), 3, 2)));
282 1, absl::apply(&Class::Method, std::tuple<Class&, int, int>(*p, 3, 2)));
286 std::tuple<st
[all...]
/third_party/libabigail/tests/data/test-diff-dwarf/
H A Dtest42-PR21296-clanggcc.cc126 class tuple;
159 /// Primary class template, tuple
161 class tuple : public _Tuple_impl<0, _Elements...> class
168 constexpr tuple(_UElements&&... __elements) in tuple() function in std::tuple
173 /// Gives the type of the ith element of a given tuple type.
179 * the tuple and retrieve the (i-1)th element of the remaining tuple.
182 struct tuple_element<__i, tuple<_Head, _Tail...> >
183 : tuple_element<__i - 1, tuple<_Tail...> > { };
189 struct tuple_element<0, tuple<_Hea
[all...]
/third_party/skia/src/core/
H A DSkScalerCache.h62 std::tuple<SkGlyph*, size_t> mergeGlyphAndImage(
66 std::tuple<const SkPath*, size_t> mergePath(
82 std::tuple<SkSpan<const SkGlyph*>, size_t> metrics(
85 std::tuple<SkSpan<const SkGlyph*>, size_t> preparePaths(
88 std::tuple<SkSpan<const SkGlyph*>, size_t> prepareImages(
117 std::tuple<SkGlyph*, size_t> glyph(SkPackedGlyphID) SK_REQUIRES(fMu);
119 std::tuple<SkGlyphDigest, size_t> digest(SkPackedGlyphID) SK_REQUIRES(fMu);
124 std::tuple<const void*, size_t> prepareImage(SkGlyph* glyph) SK_REQUIRES(fMu);
127 std::tuple<const SkPath*, size_t> preparePath(SkGlyph*) SK_REQUIRES(fMu);
135 std::tuple<SkSpa
[all...]
/third_party/python/Objects/
H A Dunionobject.c96 PyObject *tuple = NULL; in merge() local
103 Py_XDECREF(tuple); in merge()
110 if (tuple == NULL) { in merge()
111 tuple = PyTuple_New(size1 + size2 - i); in merge()
112 if (tuple == NULL) { in merge()
118 PyTuple_SET_ITEM(tuple, pos, a); in merge()
122 PyTuple_SET_ITEM(tuple, pos, arg); in merge()
126 if (tuple) { in merge()
127 (void) _PyTuple_Resize(&tuple, pos); in merge()
129 return tuple; in merge()
168 PyObject *tuple = merge(items1, size1, items2, size2); _Py_union_type_or() local
[all...]
/third_party/mesa3d/src/gallium/frontends/clover/util/
H A Dadaptor.hpp29 #include "util/tuple.hpp"
57 iterator_adaptor(F f, std::tuple<Is...> &&its) : in iterator_adaptor()
63 return tuple::apply(f, tuple::map(derefs(), its)); in operator *()
68 tuple::map(preincs(), its); in operator ++()
96 tuple::map(predecs(), its); in operator --()
109 tuple::map(advances_by(n), its); in operator +=()
115 tuple::map(advances_by(-n), its); in operator -=()
165 std::tuple<Is...> its;
/third_party/googletest/googlemock/test/
H A Dgmock-internal-utils_test.cc291 std::tuple<> matchers; in TEST()
292 std::tuple<> values; in TEST()
298 std::tuple<Matcher<int>> matchers(Eq(1)); in TEST()
299 std::tuple<int> values1(1), values2(2); in TEST()
306 std::tuple<Matcher<int>, Matcher<char>> matchers(Eq(1), Eq('a')); in TEST()
307 std::tuple<int, char> values1(1, 'a'), values2(1, 'b'), values3(2, 'a'), in TEST()
317 std::tuple<Matcher<int>, Matcher<char>, Matcher<bool>, in TEST()
321 std::tuple<int, char, bool, long, std::string> // NOLINT in TEST()
627 StlContainerView<std::tuple<const int*, size_t>>::type>(); in TEST()
630 StlContainerView<std::tuple<st in TEST()
[all...]
/third_party/python/Modules/
H A D_testclinic.c15 /* Pack arguments to a tuple, implicitly increase all the arguments' refcount.
21 PyObject *tuple = PyTuple_New(argc); in pack_arguments_newref() local
22 if (!tuple) { in pack_arguments_newref()
36 Py_DECREF(tuple); in pack_arguments_newref()
43 PyTuple_SET_ITEM(tuple, i, Py_NewRef(arg)); in pack_arguments_newref()
46 return tuple; in pack_arguments_newref()
49 /* Pack arguments to a tuple.
66 PyObject *tuple = PyTuple_New(argc); \
67 if (!tuple) { \
74 PyTuple_SET_ITEM(tuple, _
537 PyObject *tuple = PyTuple_New(3); str_converter_impl() local
595 PyObject *tuple = PyTuple_New(3); str_converter_encoding_impl() local
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/
H A DMockCallback.h68 std::tuple<Args...> tuple = std::make_tuple(args...); in CallUnboundCallback() local
74 auto userdata = std::get<ArgC - 1>(tuple); in CallUnboundCallback()
85 std::get<ArgC - 1>(tuple) = mockAndUserdata->userdata; in CallUnboundCallback()
88 return mock->CallImpl(std::make_index_sequence<ArgC>{}, std::move(tuple)); in CallUnboundCallback()
92 // to unpack the tuple arguments.
94 R CallImpl(const std::index_sequence<Is...>&, std::tuple<Args...> args) { in CallImpl()
/third_party/alsa-lib/src/topology/
H A Ddata.c570 /* get size of a tuple element from its type */
593 struct tplg_tuple *tuple; in copy_tuples() local
642 tuple = &tuple_set->tuple[j]; in copy_tuples()
643 token_val = get_token_value(tuple->token, tokens); in copy_tuples()
651 memcpy(uuid->uuid, tuple->uuid, 16); in copy_tuples()
657 snd_strlcpy(string->string, tuple->string, in copy_tuples()
664 value->value = tuple->value; in copy_tuples()
790 struct tplg_tuple *tuple; in parse_tuple_set() local
798 SNDERR("invalid tuple typ in parse_tuple_set()
894 struct tplg_tuple *tuple; tplg_save_tuple_set() local
1715 struct tplg_tuple *tuple; tplg_decode_tuple_set() local
[all...]

Completed in 18 milliseconds

12345678910>>...45