Home
last modified time | relevance | path

Searched refs:toArray (Results 1 – 25 of 216) sorted by relevance

123456789

/third_party/node/test/parallel/
Dtest-stream-drop-take.js23 deepStrictEqual(await from([1, 2, 3]).drop(2).toArray(), [3]);
24 deepStrictEqual(await from([1, 2, 3]).take(1).toArray(), [1]);
25 deepStrictEqual(await from([]).drop(2).toArray(), []);
26 deepStrictEqual(await from([]).take(1).toArray(), []);
27 deepStrictEqual(await from([1, 2, 3]).drop(1).take(1).toArray(), [2]);
28 deepStrictEqual(await from([1, 2]).drop(0).toArray(), [1, 2]);
29 deepStrictEqual(await from([1, 2]).take(0).toArray(), []);
33 deepStrictEqual(await fromAsync([1, 2, 3]).drop(2).toArray(), [3]);
34 deepStrictEqual(await fromAsync([1, 2, 3]).take(1).toArray(), [1]);
35 deepStrictEqual(await fromAsync([]).drop(2).toArray(), []);
[all …]
Dtest-stream-asIndexedPairs.mjs7 const pairs = await Readable.from([1, 2, 3]).asIndexedPairs().toArray();
9 const empty = await Readable.from([]).asIndexedPairs().toArray();
16 const pairs = await asyncFrom([1, 2, 3]).asIndexedPairs().toArray();
18 const empty = await asyncFrom([]).asIndexedPairs().toArray();
27 const pairs = await infinite().asIndexedPairs().take(3).toArray();
29 const empty = await infinite().asIndexedPairs().take(0).toArray();
38 const p = Readable.from([1, 2, 3]).asIndexedPairs({ signal }).toArray();
45 await Readable.from([1, 2, 3]).asIndexedPairs({ signal }).toArray();
Dtest-stream-toArray.js20 const result = await stream.toArray();
34 const result = await stream.toArray();
51 const result = await stream.toArray();
68 await stream.toArray({ signal: ac.signal });
79 const result = Readable.from([1, 2, 3, 4, 5]).toArray();
85 await Readable.from([1]).toArray(1);
89 await Readable.from([1]).toArray({
Dtest-stream-flatMap.js20 await oneTo5().flatMap((x) => [x + x]).toArray(),
24 await oneTo5().flatMap(() => []).toArray(),
28 await oneTo5().flatMap((x) => [x, x]).toArray(),
39 await oneTo5().flatMap(async (x) => [x, x]).toArray(),
44 await asyncOneTo5.flatMap(async (x) => [x, x]).toArray(),
54 }).toArray();
61 }).toArray();
Dtest-stream2-objects.js28 function toArray(callback) { function
70 r.pipe(toArray(common.mustCall(function(list) {
95 r.pipe(toArray(common.mustCall(function(list) {
114 r.pipe(toArray(common.mustCall(function(list) {
134 r.pipe(toArray(common.mustCall(function(array) {
149 r.pipe(toArray(common.mustCall(function(array) {
166 r.pipe(toArray(common.mustCall(function(array) {
Dtest-stream-map.js15 assert.deepStrictEqual(await stream.toArray(), [2, 4, 6, 8, 10]);
26 assert.deepStrictEqual(await stream.toArray(), [2, 4, 6, 8, 10]);
36 assert.deepStrictEqual(await stream.toArray(), [4, 8, 12, 16, 20]);
105 stream.map((x) => x + x).toArray(),
119 stream.map((x) => x + x).toArray(),
134 stream.map((x) => x + x).toArray(),
Dtest-runner-run.mjs71 …onst result = await run({ files: [join(testFixtures, 'test/random.cjs')] }).compose(dot).toArray();
80 …lt = await run({ files: [join(testFixtures, 'test/random.cjs')] }).compose(specReporter).toArray();
88 …onst result = await run({ files: [join(testFixtures, 'test/random.cjs')] }).compose(tap).toArray();
108 .toArray();
116 .toArray();
132 .toArray();
Dtest-stream-filter.js83 const result = (await stream.toArray()).map((x) => x[0]);
98 stream.map((x) => x + x).toArray(),
112 stream.filter(() => true).toArray(),
Dtest-stream-compose-operator.js72 stream.toArray(),
88 stream.toArray(),
/third_party/typescript/tests/baselines/reference/
DinferenceDoesNotAddUndefinedOrNull.types13 declare function toArray<T>(value: T | T[]): T[];
14 >toArray : { <T>(value: T | T[]): T[]; <T>(value: T | readonly T[]): readonly T[]; }
17 declare function toArray<T>(value: T | readonly T[]): readonly T[];
18 >toArray : { <T>(value: T | T[]): T[]; <T>(value: T | readonly T[]): readonly T[]; }
32 …= cb(child); if (value !== undefined) { result.push(...toArray(value)); }…
36 …= cb(child); if (value !== undefined) { result.push(...toArray(value)); }…
50 result.push(...toArray(value));
51 >result.push(...toArray(value)) : number
55 >...toArray(value) : T
56 >toArray(value) : readonly T[]
[all …]
DinferenceDoesNotAddUndefinedOrNull.js8 declare function toArray<T>(value: T | T[]): T[];
9 declare function toArray<T>(value: T | readonly T[]): readonly T[];
16 result.push(...toArray(value));
27 result.push(...toArray(value));
41 result.push.apply(result, toArray(value));
51 result.push.apply(result, toArray(value));
DinferenceDoesNotAddUndefinedOrNull.symbols27 declare function toArray<T>(value: T | T[]): T[];
28 >toArray : Symbol(toArray, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 4, 1), Decl(inferenceDoesNot…
35 declare function toArray<T>(value: T | readonly T[]): readonly T[];
36 >toArray : Symbol(toArray, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 4, 1), Decl(inferenceDoesNot…
74 result.push(...toArray(value));
78 >toArray : Symbol(toArray, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 4, 1), Decl(inferenceDoesNot…
116 result.push(...toArray(value));
120 >toArray : Symbol(toArray, Decl(inferenceDoesNotAddUndefinedOrNull.ts, 4, 1), Decl(inferenceDoesNot…
/third_party/typescript/tests/cases/compiler/
DinferenceDoesNotAddUndefinedOrNull.ts9 declare function toArray<T>(value: T | T[]): T[]; function
10 declare function toArray<T>(value: T | readonly T[]): readonly T[];
17 result.push(...toArray(value));
28 result.push(...toArray(value));
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DCollectionSet.java48 public Object[] toArray() { in toArray() method in CollectionSet
49 return data.toArray(); in toArray()
53 public <T> T[] toArray(T[] a) { in toArray() method in CollectionSet
54 return data.toArray(a); in toArray()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCollectionSet.java46 public Object[] toArray() { in toArray() method in CollectionSet
47 return data.toArray(); in toArray()
51 public <T> T[] toArray(T[] a) { in toArray() method in CollectionSet
52 return data.toArray(a); in toArray()
/third_party/protobuf/js/
Dmessage.js1297 var data = value ? value.toArray() : value;
1320 var data = value ? value.toArray() : value;
1343 data[i] = value[i].toArray();
1383 array.splice(index, 0, insertedValue.toArray());
1386 array.push(insertedValue.toArray());
1439 val[i].toArray();
1445 val.toArray();
1459 jspb.Message.prototype.toArray = function() { method in jspb.Message
1547 return msg.toArray();
1556 value ? /** @type {!jspb.Message} */ (value).toArray() : value;
[all …]
Dmap.js99 jspb.Map.prototype.toArray = function() { method in jspb.Map
108 valueWrapper.toArray();
123 valueWrapper.toArray();
144 var rawArray = this.toArray();
352 entry.value = value.toArray();
Dmaps_test.js62 var arr = map.toArray();
80 function toArray(iter) { function
169 var entries = toArray(msg.getMapStringMsgMap().entries());
397 msg.toArray(); // force a sync
402 var a = msg.toArray();
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DMapField.java411 public Object[] toArray() { in toArray() method in MapField.MutatabilityAwareMap.MutatabilityAwareCollection
412 return delegate.toArray(); in toArray()
416 public <T> T[] toArray(T[] a) { in toArray() method in MapField.MutatabilityAwareMap.MutatabilityAwareCollection
417 return delegate.toArray(a); in toArray()
508 public Object[] toArray() { in toArray() method in MapField.MutatabilityAwareMap.MutatabilityAwareSet
509 return delegate.toArray(); in toArray()
513 public <T> T[] toArray(T[] a) { in toArray() method in MapField.MutatabilityAwareMap.MutatabilityAwareSet
514 return delegate.toArray(a); in toArray()
/third_party/protobuf/js/compatibility_tests/v3.1.0/
Dmaps_test.js49 var arr = map.toArray();
62 function toArray(iter) { function
151 var entries = toArray(msg.getMapStringMsgMap().entries());
282 msg.toArray(); // force a sync
287 var a = msg.toArray();
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DByteBufferWriterTest.java60 assertTrue(Arrays.equals(toArray(buffer), os.toByteArray())); in testWrite()
71 private byte[] toArray(ByteBuffer buf) { in toArray() method in ByteBufferWriterTest
/third_party/protobuf/js/compatibility_tests/v3.0.0/
Dmessage_test.js299 assertObjectEquals(expected, foo.toArray());
317 assertObjectEquals([null, null, null, [], []], foo.toArray());
337 assertObjectEquals(expected, foo.toArray());
483 clone.toArray());
501 clone.toArray());
504 original.toArray());
533 assertArrayEquals(original.toArray(), dest.toArray());
691 assertArrayEquals([], msg.toArray());
694 assertArrayEquals([,,, {}], msg.toArray());
701 assertArrayEquals([{1: 'hi'}], msg.toArray());
[all …]
/third_party/typescript/tests/arkTSTest/testcase/arkts-strict-typing/
Darkts-strict-typing-9-ok.ets19 function toArray<T>(value: T): T[] {
23 const array = toArray("Hello, TypeScript!");
/third_party/skia/src/gpu/
DGrDDLContext.cpp62 fProgramInfoMap.toArray(dst); in detachProgramData()
90 void toArray(SkTArray<ProgramData>* dst) { in toArray() function in GrDDLContext::ProgramInfoMap
/third_party/icu/icu4c/source/test/cintltst/
Dcldrtest.c593 UResourceBundle *toArray, const char *toLocale, in compareArrays() argument
610 const UChar *toBundleStr = ures_getStringByIndex(toArray, idx, NULL, &errorCode); in compareArrays()
627 UResourceBundle *fromArray, *toArray; in compareConsistentCountryInfo() local
643 toArray = ures_getByKey(toLocaleBund, "CurrencyElements", NULL, &errorCode); in compareConsistentCountryInfo()
647 compareArrays("CurrencyElements", fromArray, fromLocale, toArray, toLocale, 1, 2); in compareConsistentCountryInfo()
650 ures_close(toArray); in compareConsistentCountryInfo()
653 toArray = ures_getByKey(toLocaleBund, "NumberPatterns", NULL, &errorCode); in compareConsistentCountryInfo()
656 compareArrays("NumberPatterns", fromArray, fromLocale, toArray, toLocale, 0, 3); in compareConsistentCountryInfo()
659 ures_close(toArray); in compareConsistentCountryInfo()
672 toArray = ures_getByKey(toLocaleBund, "NumberElements", NULL, &errorCode); in compareConsistentCountryInfo()
[all …]

123456789