Home
last modified time | relevance | path

Searched refs:tuple (Results 1 – 25 of 1453) sorted by relevance

12345678910>>...59

/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
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.toLocalizedPattern;
[all …]
DDataDrivenNumberFormatTestUtility.java49 public String format(DataDrivenNumberFormatTestData tuple) { in format() argument
50 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in format()
60 public String toPattern(DataDrivenNumberFormatTestData tuple) { in toPattern() argument
61 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in toPattern()
71 public String parse(DataDrivenNumberFormatTestData tuple) { in parse() argument
72 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in parse()
82 public String parseCurrency(DataDrivenNumberFormatTestData tuple) { in parseCurrency() argument
83 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in parseCurrency()
93 public String select(DataDrivenNumberFormatTestData tuple) { in select() argument
94 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in select()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
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.toLocalizedPattern;
[all …]
DDataDrivenNumberFormatTestUtility.java52 public String format(DataDrivenNumberFormatTestData tuple) { in format() argument
53 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in format()
63 public String toPattern(DataDrivenNumberFormatTestData tuple) { in toPattern() argument
64 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in toPattern()
74 public String parse(DataDrivenNumberFormatTestData tuple) { in parse() argument
75 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in parse()
85 public String parseCurrency(DataDrivenNumberFormatTestData tuple) { in parseCurrency() argument
86 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in parseCurrency()
96 public String select(DataDrivenNumberFormatTestData tuple) { in select() argument
97 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in select()
[all …]
/third_party/icu/icu4c/source/test/intltest/
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.currencyFlag) { in adjustDecimalFormat()
[all …]
Ddatadrivennumberformattestsuite.cpp210 const NumberFormatTestTuple &tuple, in isPass() argument
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.outputCurrencyFlag) { in isPass()
229 result = isParseCurrencyPass(tuple, appendErrorMessage, status); in isPass()
231 } else if (tuple.parseFlag && tuple.outputFlag) { in isPass()
232 result = isParsePass(tuple, appendErrorMessage, status); in isPass()
233 } else if (tuple.pluralFlag) { in isPass()
[all …]
/third_party/mesa3d/src/panfrost/bifrost/
Dbi_schedule.c322 struct bi_clause_state *clause, struct bi_tuple_state *tuple) in bi_lower_cubeface() argument
324 bi_instr *pinstr = tuple->add; in bi_lower_cubeface()
345 bi_tuple_state *tuple) in bi_lower_atom_c() argument
347 bi_instr *pinstr = tuple->add; in bi_lower_atom_c()
364 bi_tuple_state *tuple) in bi_lower_atom_c1() argument
366 bi_instr *pinstr = tuple->add; in bi_lower_atom_c1()
385 struct bi_clause_state *clause, struct bi_tuple_state *tuple) in bi_lower_seg_add() argument
387 bi_instr *pinstr = tuple->add; in bi_lower_seg_add()
405 struct bi_clause_state *clause, struct bi_tuple_state *tuple) in bi_lower_dtsel() argument
407 bi_instr *add = tuple->add; in bi_lower_dtsel()
[all …]
Dbi_pack.c321 bi_pack_tuple(bi_clause *clause, bi_tuple *tuple, bi_tuple *prev, bool first_tuple, gl_shader_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->fma, in bi_pack_tuple()
334 bi_get_src_new(tuple->fma, &tuple->regs, 0), in bi_pack_tuple()
[all …]
/third_party/typescript/tests/baselines/reference/
DcallWithSpread2.types45 declare var tuple: [number, string];
46 >tuple : [number, string]
67 weird(...tuple)
68 >weird(...tuple) : void
70 >...tuple : string | number
71 >tuple : [number, string]
109 all(...tuple)
110 >all(...tuple) : void
112 >...tuple : string | number
113 >tuple : [number, string]
[all …]
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);
DnamedTupleMembersErrors.errors.txt1 tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts(1,41): error TS5084: Tuple mem…
2 tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts(2,25): error TS5084: Tuple mem…
3 tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts(4,32): error TS5084: Tuple mem…
4 tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts(5,22): error TS5084: Tuple mem…
5 tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts(7,32): error TS5084: Tuple mem…
6 tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts(8,22): error TS5084: Tuple mem…
7 tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts(10,29): error TS5086: A labele…
8 tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts(12,46): error TS5087: A labele…
9 tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts(14,49): error TS5087: A labele…
10 tests/cases/conformance/types/tuple/named/namedTupleMembersErrors.ts(14,52): error TS8020: JSDoc ty…
[all …]
DreadonlyArraysAndTuples.errors.txt1 …/conformance/types/tuple/readonlyArraysAndTuples.ts(9,12): error TS1354: 'readonly' type modifier …
2 …conformance/types/tuple/readonlyArraysAndTuples.ts(10,15): error TS1354: 'readonly' type modifier …
3 …conformance/types/tuple/readonlyArraysAndTuples.ts(11,12): error TS1354: 'readonly' type modifier …
4 …conformance/types/tuple/readonlyArraysAndTuples.ts(12,12): error TS1354: 'readonly' type modifier …
5 tests/cases/conformance/types/tuple/readonlyArraysAndTuples.ts(15,5): error TS4104: The type 'reado…
6 tests/cases/conformance/types/tuple/readonlyArraysAndTuples.ts(17,5): error TS4104: The type 'reado…
7 tests/cases/conformance/types/tuple/readonlyArraysAndTuples.ts(21,5): error TS2322: Type 'string[]'…
9 tests/cases/conformance/types/tuple/readonlyArraysAndTuples.ts(22,5): error TS4104: The type 'reado…
10 tests/cases/conformance/types/tuple/readonlyArraysAndTuples.ts(23,5): error TS4104: The type 'reado…
11 tests/cases/conformance/types/tuple/readonlyArraysAndTuples.ts(24,5): error TS2322: Type 'string[]'…
[all …]
DcallWithSpread2.js12 declare var tuple: [number, string];
18 weird(...tuple)
29 all(...tuple)
31 prefix("c", ...tuple)
33 rest("f", ...tuple)
36 prefix(...tuple)
54 weird.apply(void 0, tuple);
62 all.apply(void 0, tuple);
64 prefix.apply(void 0, __spreadArray(["c"], tuple, false));
66 rest.apply(void 0, __spreadArray(["f"], tuple, false));
[all …]
DcallWithSpread2.symbols45 declare var tuple: [number, string];
46 >tuple : Symbol(tuple, Decl(callWithSpread2.ts, 10, 11))
61 weird(...tuple)
63 >tuple : Symbol(tuple, Decl(callWithSpread2.ts, 10, 11))
88 all(...tuple)
90 >tuple : Symbol(tuple, Decl(callWithSpread2.ts, 10, 11))
96 prefix("c", ...tuple)
98 >tuple : Symbol(tuple, Decl(callWithSpread2.ts, 10, 11))
104 rest("f", ...tuple)
106 >tuple : Symbol(tuple, Decl(callWithSpread2.ts, 10, 11))
[all …]
DdestructuringTuple.symbols2 declare var tuple: [boolean, number, ...string[]];
3 >tuple : Symbol(tuple, Decl(destructuringTuple.ts, 0, 11))
5 const [a, b, c, ...rest] = tuple;
10 >tuple : Symbol(tuple, Decl(destructuringTuple.ts, 0, 11))
12 declare var receiver: typeof tuple;
14 >tuple : Symbol(tuple, Decl(destructuringTuple.ts, 0, 11))
16 [...receiver] = tuple;
18 >tuple : Symbol(tuple, Decl(destructuringTuple.ts, 0, 11))
DES5For-ofTypeCheck3.symbols2 var tuple: [string, number] = ["", 0];
3 >tuple : Symbol(tuple, Decl(ES5For-ofTypeCheck3.ts, 0, 3))
5 for (var v of tuple) { }
7 >tuple : Symbol(tuple, Decl(ES5For-ofTypeCheck3.ts, 0, 3))
Dfor-of36.symbols2 var tuple: [string, boolean] = ["", true];
3 >tuple : Symbol(tuple, Decl(for-of36.ts, 0, 3))
5 for (var v of tuple) {
7 >tuple : Symbol(tuple, Decl(for-of36.ts, 0, 3))
DcallWithSpread2.errors.txt1 …WithSpread2.ts(23,13): error TS2556: A spread argument must either have a tuple type or be passed …
2 …lWithSpread2.ts(24,7): error TS2556: A spread argument must either have a tuple type or be passed …
12 …lWithSpread2.ts(33,8): error TS2556: A spread argument must either have a tuple type or be passed …
13 …lWithSpread2.ts(34,8): error TS2556: A spread argument must either have a tuple type or be passed …
15 …WithSpread2.ts(36,14): error TS2556: A spread argument must either have a tuple type or be passed …
29 declare var tuple: [number, string];
35 weird(...tuple)
43 !!! error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.
46 !!! error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.
53 all(...tuple)
[all …]
DrestElementWithAssignmentPattern3.symbols6 var tuple: [string, number] = ["", 1];
7 >tuple : Symbol(tuple, Decl(restElementWithAssignmentPattern3.ts, 1, 3))
9 [...[a, b = 0]] = tuple;
12 >tuple : Symbol(tuple, Decl(restElementWithAssignmentPattern3.ts, 1, 3))
/third_party/node/test/parallel/
Dtest-process-hrtime.js27 const tuple = process.hrtime(); constant
30 validateTuple(tuple);
33 validateTuple(process.hrtime(tuple));
66 function validateTuple(tuple) { argument
67 assert(Array.isArray(tuple));
68 assert.strictEqual(tuple.length, 2);
69 assert(Number.isInteger(tuple[0]));
70 assert(Number.isInteger(tuple[1]));
/third_party/python/Doc/c-api/
Dtuple.rst8 .. index:: object: tuple
13 This subtype of :c:type:`PyObject` represents a Python tuple object.
18 This instance of :c:type:`PyTypeObject` represents the Python tuple type; it
19 is the same object as :class:`tuple` in the Python layer.
24 Return true if *p* is a tuple object or an instance of a subtype of the
25 tuple type. This function always succeeds.
30 Return true if *p* is a tuple object, but not an instance of a subtype of the
31 tuple type. This function always succeeds.
36 Return a new tuple object of size *len*, or ``NULL`` on failure.
41 Return a new tuple object of size *n*, or ``NULL`` on failure. The tuple values
[all …]
/third_party/libabigail/tests/data/test-diff-dwarf/
Dtest42-PR21296-clanggcc-report0.txt10 …[C] 'function std::tuple<STR&&> my_forward_as_tuple<STR>(STR&&)' has some indirect sub-type change…
12 type name changed from 'std::tuple<STR&&>' to 'std::tuple<STR &&>'
48 …[C] 'function std::__add_c_ref<STR&&>::type std::get<0ul, STR&&>(const std::tuple<STR&&>&)' has so…
49tuple<STR&&>&) {_ZSt3getILm0EJO3STREENSt11__add_c_refINSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4ty…
52 parameter 1 of type 'const std::tuple<STR&&>&' changed:
53 in referenced type 'const std::tuple<STR&&>':
54 'const std::tuple<STR&&>' changed to 'const std::tuple<STR &&>'
62 [C] 'function void tpl<std::tuple<STR&&> >(std::tuple<STR&&>)' has some indirect sub-type changes:
63 …id tpl<std::tuple<STR&&> >(std::tuple<STR&&>) {_Z3tplISt5tupleIJO3STREEEvT_}' now becomes 'functio…
64 parameter 1 of type 'class std::tuple<STR&&>' changed:
Dtest42-PR21296-clanggcc.cc126 class tuple;
161 class tuple : public _Tuple_impl<0, _Elements...> class
168 constexpr tuple(_UElements&&... __elements) in tuple() function in std::tuple
182 struct tuple_element<__i, tuple<_Head, _Tail...> >
183 : tuple_element<__i - 1, tuple<_Tail...> > { };
189 struct tuple_element<0, tuple<_Head, _Tail...> >
211 typename tuple_element<__i, tuple<_Elements...>>::type
213 get(const tuple<_Elements...>& __t) noexcept in get()
218 tuple<_Elements&&...>
220 { return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } in forward_as_tuple()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/utility/
Dutility_test.cc143 std::vector<std::string> TupStringVec(const std::tuple<Ts...>& tup) { in TupStringVec()
234 TEST(ApplyTest, VoidResult) { absl::apply(NoOp, std::tuple<>()); } in TEST()
254 EXPECT_EQ("&", absl::apply(f, std::tuple<>{})); in TEST()
257 EXPECT_EQ("const&", absl::apply(cf, std::tuple<>{})); in TEST()
260 EXPECT_EQ("&&", absl::apply(std::move(f), std::tuple<>{})); in TEST()
278 std::tuple<std::unique_ptr<Class>&, int, int>(p, 3, 2))); in TEST()
280 std::tuple<Class*, int, int>(p.get(), 3, 2))); in TEST()
282 1, absl::apply(&Class::Method, std::tuple<Class&, int, int>(*p, 3, 2))); in TEST()
286 std::tuple<std::unique_ptr<Class>&, int, int>(p, 3, 2))); in TEST()
288 std::tuple<Class*, int, int>(p.get(), 3, 2))); in TEST()
[all …]
/third_party/python/Lib/test/
Dtest_tuple.py19 type2test = tuple
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(x for x in range(10) if x % 2),
43 tuple(sequence=())
75 self.assertEqual(list(tuple(f())), list(range(1000)))
[all …]

12345678910>>...59