Home
last modified time | relevance | path

Searched refs:array1 (Results 1 – 25 of 116) sorted by relevance

12345

/third_party/typescript/tests/baselines/reference/
DemitCompoundExponentiationAssignmentWithIndexingOnLHS4.types32 var array1 = [1, 2, 3, 4, 5];
33 >array1 : number[]
41 array1[incrementIdx(array1.length)] **= 3;
42 >array1[incrementIdx(array1.length)] **= 3 : number
43 >array1[incrementIdx(array1.length)] : number
44 >array1 : number[]
45 >incrementIdx(array1.length) : number
47 >array1.length : number
48 >array1 : number[]
52 array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] **= 2;
[all …]
DemitCompoundExponentiationAssignmentWithIndexingOnLHS4.symbols26 var array1 = [1, 2, 3, 4, 5];
27 >array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3))
29 array1[incrementIdx(array1.length)] **= 3;
30 >array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3))
32 >array1.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --))
33 >array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3))
36 array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] **= 2;
37 >array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3))
39 >array1.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --))
40 >array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts, 7, 3))
[all …]
DemitCompoundExponentiationAssignmentWithIndexingOnLHS4.js9 var array1 = [1, 2, 3, 4, 5]; variable
11 array1[incrementIdx(array1.length)] **= 3;
13 array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] **= 2;
15 array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] ** 2;
25 var array1 = [1, 2, 3, 4, 5]; variable
26 (_a = array1)[_b = incrementIdx(array1.length)] = Math.pow(_a[_b], 3);
27 (_e = array1)[_f = incrementIdx(array1.length)] = Math.pow(_e[_f], (_c = array1)[_d = incrementIdx(
28 (_g = array1)[_h = incrementIdx(array1.length)] = Math.pow(_g[_h], Math.pow(array1[incrementIdx(arr…
DemitCompoundExponentiationAssignmentWithIndexingOnLHS1.types21 var array1 = [1, 2, 3]
22 >array1 : number[]
32 array1[++i1] **= array1[++i1] **= 2;
33 >array1[++i1] **= array1[++i1] **= 2 : number
34 >array1[++i1] : number
35 >array1 : number[]
38 >array1[++i1] **= 2 : number
39 >array1[++i1] : number
40 >array1 : number[]
DemitCapturingThisInTupleDestructuring2.js2 var array1: [number, number] = [1, 2]; variable
9 …() => [this.test, this.test1, this.test2] = array1; // even though there is a compiler error, we s…
14 var array1 = [1, 2]; variable
20 …(function () { return _this.test = array1[0], _this.test1 = array1[1], _this.test2 = array1[2], ar…
DtypeInferenceWithTupleType.types32 function zip<T, U>(array1: T[], array2: U[]): [[T, U]] {
33 >zip : <T, U>(array1: T[], array2: U[]) => [[T, U]]
34 >array1 : T[]
37 if (array1.length != array2.length) {
38 >array1.length != array2.length : boolean
39 >array1.length : number
40 >array1 : T[]
52 var length = array1.length;
54 >array1.length : number
55 >array1 : T[]
[all …]
DtypeInferenceWithTupleType.js10 function zip<T, U>(array1: T[], array2: U[]): [[T, U]] {
11 if (array1.length != array2.length) {
14 var length = array1.length;
17 zipResult.push([array1[i], array2[i]]);
43 function zip(array1, array2) { argument
44 if (array1.length != array2.length) {
47 var length = array1.length;
50 zipResult.push([array1[i], array2[i]]);
DemitCompoundExponentiationAssignmentWithIndexingOnLHS1.symbols12 var array1 = [1, 2, 3]
13 >array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 4, 3))
18 array1[++i1] **= array1[++i1] **= 2;
19 >array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 4, 3))
21 >array1 : Symbol(array1, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts, 4, 3))
DemitCompoundExponentiationAssignmentWithIndexingOnLHS1.js6 var array1 = [1, 2, 3] variable
8 array1[++i1] **= array1[++i1] **= 2;
23 var array1 = [1, 2, 3]; variable
25 (_e = array1)[_f = ++i1] = Math.pow(_e[_f], (_c = array1)[_d = ++i1] = Math.pow(_c[_d], 2));
DemitCapturingThisInTupleDestructuring2.types2 var array1: [number, number] = [1, 2];
3 >array1 : [number, number]
23 …() => [this.test, this.test1, this.test2] = array1; // even though there is a compiler error, we s…
24 >() => [this.test, this.test1, this.test2] = array1 : () => [number, number]
25 >[this.test, this.test1, this.test2] = array1 : [number, number]
36 >array1 : [number, number]
DtypeInferenceWithTupleType.symbols32 function zip<T, U>(array1: T[], array2: U[]): [[T, U]] {
36 >array1 : Symbol(array1, Decl(typeInferenceWithTupleType.ts, 8, 19))
43 if (array1.length != array2.length) {
44 >array1.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --))
45 >array1 : Symbol(array1, Decl(typeInferenceWithTupleType.ts, 8, 19))
55 var length = array1.length;
57 >array1.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --))
58 >array1 : Symbol(array1, Decl(typeInferenceWithTupleType.ts, 8, 19))
72 zipResult.push([array1[i], array2[i]]);
76 >array1 : Symbol(array1, Decl(typeInferenceWithTupleType.ts, 8, 19))
DemitCapturingThisInTupleDestructuring2.symbols2 var array1: [number, number] = [1, 2];
3 >array1 : Symbol(array1, Decl(emitCapturingThisInTupleDestructuring2.ts, 0, 3))
20 …() => [this.test, this.test1, this.test2] = array1; // even though there is a compiler error, we s…
30 >array1 : Symbol(array1, Decl(emitCapturingThisInTupleDestructuring2.ts, 0, 3))
/third_party/protobuf/js/experimental/runtime/kernel/
Dtyped_arrays_test.js32 const array1 = new Uint8Array(4); constant
33 array1[0] = 1;
36 expect(arrayBufferEqual(array1.buffer, array2.buffer)).toBe(true);
40 const array1 = new Uint8Array(4); constant
41 array1[0] = 1;
44 expect(arrayBufferEqual(array1.buffer, array2.buffer)).toBe(false);
48 const array1 = new Uint8Array(4); constant
49 array1[0] = 1;
50 expect(arrayBufferEqual(array1.buffer, array1.buffer)).toBe(true);
56 const array1 = new Uint8Array(0); constant
[all …]
Dtyped_arrays.js18 const array1 = new Uint8Array(buffer1);
21 return uint8ArrayEqual(array1, array2);
29 function uint8ArrayEqual(array1, array2) { argument
30 if (array1 === array2) {
34 if (array1.byteLength !== array2.byteLength) {
38 for (let i = 0; i < array1.byteLength; i++) {
39 if (array1[i] !== array2[i]) {
/third_party/typescript/tests/cases/conformance/es7/exponentiationOperator/
DemitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts10 var array1 = [1, 2, 3, 4, 5]; variable
12 array1[incrementIdx(array1.length)] **= 3;
14 array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] **= 2;
16 array1[incrementIdx(array1.length)] **= array1[incrementIdx(array1.length)] ** 2;
/third_party/boost/libs/compute/test/
Dtest_valarray.cpp85 boost::compute::valarray<float> array1(data, 4); \
89 array1 op##= 1; \
91 BOOST_CHECK_CLOSE(float(array1[0]), float(1.0f op 1.0f), 1e-4f); \
92 BOOST_CHECK_CLOSE(float(array1[1]), float(2.0f op 1.0f), 1e-4f); \
93 BOOST_CHECK_CLOSE(float(array1[2]), float(3.0f op 1.0f), 1e-4f); \
94 BOOST_CHECK_CLOSE(float(array1[3]), float(4.0f op 1.0f), 1e-4f); \
96 array1 = boost::compute::valarray<float>(data, 4); \
99 array1 op##= array2; \
101 BOOST_CHECK_CLOSE(float(array1[0]), float(1.0f op 1.0f), 1e-4f); \
102 BOOST_CHECK_CLOSE(float(array1[1]), float(2.0f op 2.0f), 1e-4f); \
[all …]
/third_party/boost/libs/multi_array/test/
Dallocators.cpp122 type array1(sizes, state); in main() local
124 array1.assign(values.begin(), values.end()); in main()
125 type array2(array1); in main()
128 BOOST_TEST(test(array1, array2)); in main()
131 type array1(sizes, state); in main() local
134 array1.assign(values.begin(), values.end()); in main()
135 array2 = array1; in main()
138 BOOST_TEST(test(array1, array2)); in main()
141 type array1(sizes, state); in main() local
143 array1.assign(values.begin(), values.end()); in main()
[all …]
/third_party/jerryscript/tests/jerry/
Dstring-prototype-localecompare.js33 var array1 = ["1", 2]; variable
35 assert (String.prototype.localeCompare.call(42, array1) === 1);
36 assert (String.prototype.localeCompare.call(array1, null) === -1);
37 assert (String.prototype.localeCompare.call(array1, array1) === 0);
38 assert (String.prototype.localeCompare.call(array1, array2) === -1);
39 assert (String.prototype.localeCompare.call(array2, array1) === 1);
/third_party/typescript/src/harness/
DharnessUtils.ts264 …export function assertDiagnosticsEquals(array1: readonly ts.Diagnostic[], array2: readonly ts.Diag…
265 if (array1 === array2) {
269 assert(array1, "array1");
272 assert.equal(array1.length, array2.length, "array1.length !== array2.length");
274 for (let i = 0; i < array1.length; i++) {
275 const d1 = array1[i];
311 array1 => {
312 const childName = findChildName(node1, array1);
315 assertArrayStructuralEquals(array1, array2);
319 …function assertArrayStructuralEquals(array1: ts.NodeArray<ts.Node>, array2: ts.NodeArray<ts.Node>)…
[all …]
/third_party/boost/libs/core/test/swap/
Darray_of_int.cpp24 int array1[array_size]; in main() local
27 std::copy(initial_array1, initial_array1 + array_size, array1); in main()
30 boost::swap(array1, array2); in main()
32 BOOST_CHECK(std::equal(array1, array1 + array_size, initial_array2)); in main()
Dswap_array_of_int.cpp24 int array1[array_size]; in main() local
27 std::copy(initial_array1, initial_array1 + array_size, array1); in main()
30 boost::swap(array1, array2); in main()
32 BOOST_CHECK(std::equal(array1, array1 + array_size, initial_array2)); in main()
Dswap_array_of_class.cpp46 swap_test_class array1[array_size]; in main() local
49 std::copy(initial_array1, initial_array1 + array_size, array1); in main()
53 boost::swap(array1, array2); in main()
55 BOOST_CHECK(std::equal(array1, array1 + array_size, initial_array2)); in main()
Darray_of_class.cpp46 swap_test_class array1[array_size]; in main() local
49 std::copy(initial_array1, initial_array1 + array_size, array1); in main()
53 boost::swap(array1, array2); in main()
55 BOOST_CHECK(std::equal(array1, array1 + array_size, initial_array2)); in main()
Darray_of_template.cpp56 swap_test_template<int> array1[array_size]; in main() local
59 std::copy(initial_array1, initial_array1 + array_size, array1); in main()
63 boost::swap(array1, array2); in main()
65 BOOST_CHECK(std::equal(array1, array1 + array_size, initial_array2)); in main()
Dswap_array_of_template.cpp56 swap_test_template<int> array1[array_size]; in main() local
59 std::copy(initial_array1, initial_array1 + array_size, array1); in main()
63 boost::swap(array1, array2); in main()
65 BOOST_CHECK(std::equal(array1, array1 + array_size, initial_array2)); in main()

12345