| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/33.constant_expression/ |
| D | constant_expression.params.yaml | 6 # http://www.apache.org/licenses/LICENSE-2.0 13 --- 15 - use: | 17 - use: | 19 - use: | 21 - use: | 23 - use: | 24 enum Bool { False = !true ? 1 : 2, True = !false ? 3 : 4 } 25 - use: | 26 enum Unary { Plus = +3, Minus = -3, Tilda = ~3 } [all …]
|
| /arkcompiler/ets_runtime/test/aottest/builtins_string/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 14 sd-93u498thikefnow8y3-0rh1nalksfnwo8y3t19-3r8hoiefnw 15 sd-93u498thikefnow8y3-0rh1nalksfnwo8y3t19-3r8hoiefnw 16 sd-93u498thikefnow8y3-0rh1nalksfnwo8y3t19-3r8hoiefnw 18 sd-93u498thikefnow8y3-0rh1nalksfnwo8y3t19-3r8hoiefnw 19 hikefnow8y3-0rh1nalksfnwo8y3t19-3r8hoiefnw 20 sd-93u498thikefnow8y3-0rh1nalksfnwo8y3t19-3r8hoiefnw 21 sd-93u498thikefnow8y3-0rh1nalksfnwo8y3t19-3r8hoiefnw 22 hikefnow8y3-0rh1nalksfnwo8y3t19-3r8hoiefnw 26 sd-93u498thikefnow8y3-0rh1nalksfnwo8y3t19-3r8hoiefnw [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/02.order_of_expression_evaluation/ |
| D | int_parens.params.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 --- # List of integer addition and multiplication associative tests 16 - {left: "2+3+4+5", right: "(2+3)+4+5"} 17 - {left: "2+3+4+5", right: "(2+3)+(4+5)"} 18 - {left: "2+3+4+5", right: "2+(3+4)+5"} 19 - {left: "2+3+4+5", right: "2+3+(4+5)"} 20 - {left: "2+3+4+5", right: "(((2+3)+4)+5)"} 21 - {left: "2+3+4+5", right: "((2+3)+4)+5"} 23 - {left: "2*3*4*5", right: "(2*3)*4*5"} [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/arrayEvery/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 15 …:0,"array":[1,2,3,4]},{"value":2,"index":1,"array":[1,2,3,4]},{"value":3,"index":2,"array":[1,2,3,… 16 --- 18 …{"value":1,"index":0,"array":[1,2,-3,4]},{"value":2,"index":1,"array":[1,2,-3,4]},{"value":-3,"ind… 19 --- 20 Test case 3: 22 --- 25 --- 27 Log: [{"value":3,"index":2,"array":[null,null,3,null,5]},{"value":5,"index":4,"array":[null,null,3,… 28 --- [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/ |
| D | list.copyWithin.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 - { 16 expected: [1, 2, 3, 4, 5], 17 params: [6, 2, 3] 19 - { 21 expected: [1, 2, 3, 4, 5], 22 params: [-3, 2, 3] 24 - { 26 expected: [1, 2, 3, 4, 5], [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/escompat/ |
| D | list.copyWithin.yaml | 1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 - { 16 expected: [1, 2, 3, 4, 5], 17 params: [6, 2, 3] 19 - { 21 expected: [1, 2, 3, 4, 5], 22 params: [-3, 2, 3] 24 - { 26 expected: [1, 2, 3, 4, 5], [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/arrayfind/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 19 3,undefined 27 3,undefined 37 …e":1,"index":0,"array":[1,2,3,4]},{"value":2,"index":1,"array":[1,2,3,4]},{"value":3,"index":2,"ar… 38 --- 40 …:0,"array":[1,2,3,4]},{"value":2,"index":1,"array":[1,2,3,4]},{"value":3,"index":2,"array":[1,2,3,… 41 --- 42 Find Test case 3: 44 --- 47 --- [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/arrayfindindex/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 18 … [{"value":1,"index":0,"array":[1,2,3,4]},{"value":2,"index":1,"array":[1,2,3,4]},{"value":3,"inde… 19 --- 21 …y":[1,2,3,4]},{"value":2,"index":1,"array":[1,2,3,4]},{"value":3,"index":2,"array":[1,2,3,4]},{"va… 22 --- 23 FindIndex Test case 3: 24 Log: [] Result: -1 25 --- 28 --- 30 … [{"value":1,"index":0,"array":[1,2,3,4]},{"value":2,"index":1,"array":[1,2,3,4]},{"value":3,"inde… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | ets_escompat_typed_arrays.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 17 //! RUN force_jit: true, options: "--compiler-regex=.*::set_array", entry: "ets_escompat_… 23 let src = Int8Array.of(1, 2, 3, 4, 5) 27 check_array(dst, Int8Array.of(1, 2, 3, 4, 5, 77, 77, 77, 77, 77)) 31 //! RUN force_jit: true, options: "--compiler-regex=.*::set_array", entry: "ets_escompat_… 37 let src = Int8Array.of(1, 2, 3, 4, 5) 51 //! RUN force_jit: true, options: "--compiler-regex=.*::set_array", entry: "ets_escompat_… 57 let src = Int8Array.of(1, 2, 3, 4, 5) 61 check_array(dst, Int8Array.of(77, 77, 77, 77, 1, 2, 3, 4, 5, 77)) 65 //! RUN force_jit: true, options: "--compiler-regex=.*::set_array", entry: "ets_escompat_… [all …]
|
| /arkcompiler/ets_runtime/test/aottest/createarrayimm16/ |
| D | createarrayimm16.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 let a0:number[] = [1, 2, 3]; 20 let a1:number[] = [1, 2, 3]; 21 let a2:number[] = [1, 2, 3]; 22 let a3:number[] = [1, 2, 3]; 23 let a4:number[] = [1, 2, 3]; 24 let a5:number[] = [1, 2, 3]; 25 let a6:number[] = [1, 2, 3]; 26 let a7:number[] = [1, 2, 3]; 27 let a8:number[] = [1, 2, 3]; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | lambda-type-inference-overloaded-3-expected.txt | 15 "program": "lambda-type-inference-overloaded-3.ets" 20 "program": "lambda-type-inference-overloaded-3.ets" 37 "program": "lambda-type-inference-overloaded-3.ets" 42 "program": "lambda-type-inference-overloaded-3.ets" 63 "program": "lambda-type-inference-overloaded-3.ets" 68 "program": "lambda-type-inference-overloaded-3.ets" 95 "program": "lambda-type-inference-overloaded-3.ets" 100 "program": "lambda-type-inference-overloaded-3.ets" 109 "program": "lambda-type-inference-overloaded-3.ets" 114 "program": "lambda-type-inference-overloaded-3.ets" [all …]
|
| D | lambda_import_alias_1-3-expected.txt | 15 "program": "lambda_import_alias_1-3.ets" 20 "program": "lambda_import_alias_1-3.ets" 37 "program": "lambda_import_alias_1-3.ets" 42 "program": "lambda_import_alias_1-3.ets" 62 "program": "lambda_import_alias_1-3.ets" 67 "program": "lambda_import_alias_1-3.ets" 82 "program": "lambda_import_alias_1-3.ets" 87 "program": "lambda_import_alias_1-3.ets" 95 "program": "lambda_import_alias_1-3.ets" 100 "program": "lambda_import_alias_1-3.ets" [all …]
|
| D | binary_operations.ets | 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 17 private sum1 : int = 3 + 2; 18 private sum2 : int = 3 + 2 - 4 + 1; 19 private sub1 : int = 8 - 3; 20 private sub2 : int = 8 - 3 + 8; 21 private rem1 : int = 5 % 3; 22 private rem2 : int = 5 % 3 - 2 * 8; 26 private div2 : double = 4.2 / (2.2 - 0.1) + (3.3 / 6.1); 30 private bit1 : int = 7 & 3; [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/arraySome/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 15 …g: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]},{"value":3,"index"… 16 --- 18 …g: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]},{"value":3,"index"… 19 --- 20 Some Test Case 3: 22 --- 25 --- 27 Log: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]}] Result: true 28 --- [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/03.operator_precedence/ |
| D | postfix.ets | 2 * Copyright (c) 2021-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 16 /*--- 18 ---*/ 21 let res: int, t2 = 2, t3 = 3, t4 = 4, t8 = 8, t255 = 255 25 if (res != 2 || t2 != 3) return 1; 28 res = + t2-- 33 res = - t2++ 34 if (res != -2 || t2 != 3) return 1; 37 res = - t2-- [all …]
|
| D | prefix.ets | 2 * Copyright (c) 2021-2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 16 /*--- 18 ---*/ 21 let res: int, t2 = 2, t3 = 3, t4 = 4, t8 = 8, t255 = 255 25 if (res != 3 || t2 != 3) return 1; 28 res = + --t2 33 res = - ++t2 34 if (res != -3 || t2 != 3) return 1; 37 res = - --t2 [all …]
|
| /arkcompiler/ets_runtime/test/sharedtest/sharedtypedarray/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 47 From an non-sendable ArrayBuffer: BusinessError: Parameter error. Only accept sendable value., errC… 54 From an iterable: 3, array: [1,2,3] 317 -1 318 -1 320 -1 321 -1 323 -1 324 -1 326 -1 [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/02.fixed_array_types/ |
| D | fixed_array_types_ext.params.yaml | 6 # http://www.apache.org/licenses/LICENSE-2.0 14 --- # Interfaces with static members and type parameters inside 16 - desc: |- 19 - negative 20 - compile-only 21 logic: |- 22 let fixedArr: FixedArray<number> = [1, 2, 3]; 25 - desc: |- 28 - negative 29 - compile-only [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/arrayconcat/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 15 a,b,c,1,2,3 16 1,2,3,4,5,6,7,8,9 17 a,b,c,1,2,3 18 1,2,3,2,3 19 1,2,3,2,3 20 1,,3,4,5 21 1,2,3,,5 23 1 3 2 ab 1 24 1 3 2 ab 1 [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/03.numeric_operator_contexts/binary_numeric_promotion/ |
| D | result_type_bitwise.params.yaml | 1 # Copyright (c) 2021-2025 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 14 --- 16 - { type: byte, val: 1 as byte, rt: byte, rv: 1 as byte, op: '&', res: 3 } 17 - { type: byte, val: 1 as byte, rt: short, rv: 1 as short, op: '^', res: 3 } 18 - { type: byte, val: 1 as byte, rt: char, rv: "c'0'", op: '|', res: 3 } 19 - { type: byte, val: 1 as byte, rt: int, rv: 1, op: '&', res: 3 } 20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, op: '^', res: 4 } 21 - { type: byte, val: 1 as byte, rt: float, rv: 1.0 as float, op: '&', res: 3 } 22 - { type: byte, val: 1 as byte, rt: double, rv: 4, op: '^', res: 4 } [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | sendable_class_interface_property.ets.json | 8 "http://www.apache.org/licenses/LICENSE-2.0", 24 …Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-variables)", 29 "column": 3, 34 …in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-sendable-prop-types)", 39 "column": 3, 44 …in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-sendable-prop-types)", 49 "column": 3, 54 …in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-sendable-prop-types)", 59 "column": 3, 64 …in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-sendable-prop-types)", [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/ |
| D | DecodeURITest.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 17 let code1 = decodeURI("%23%24%26%2B%2C%2F%3A%3B%3D%3F%40") 18 assertEQ(code1, "%23%24%26%2B%2C%2F%3A%3B%3D%3F%40") 19 let code2 = decodeURI("%23%24%26%2b%2c%2f%3a%3b%3d%3f%40") 20 assertEQ(code2, "%23%24%26%2b%2c%2f%3a%3b%3d%3f%40") 21 let code3 = decodeURI("%23%24%26%2b%2C%2F%3a%3b%3D%3F%40") 22 assertEQ(code3, "%23%24%26%2b%2C%2F%3a%3b%3D%3F%40")
|
| /arkcompiler/ets_frontend/arkguard/test/grammar/compact/ |
| D | numericLiteralsWithTrailingDecimalPoints.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 18 1. + 2.0 + 3.; 22 var compactTest3 = 3 .toString(); 23 var compactTest4 = 3 .toString(); 24 var compactTest5 = 3 .toString(); 25 var compactTest6 = 3.['toString'](); 26 var compactTest7 = 3 29 var compactTest9 = 3. + 3.; 31 var compactTest11 = 3. /* comment */.toString(); 32 var compactTest12 = 3 [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/conformance/decorators/ |
| D | test-ts-decorators-3-expected.txt | 1 test-ts-decorators-3 3 test-ts-decorators-3 5 test-ts-decorators-3 7 test-ts-decorators-3 9 test-ts-decorators-3 10 3
|
| /arkcompiler/ets_runtime/test/moduletest/objectentries/ |
| D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 20 b,-1 23 e,-2147483648 24 f,-2147483649 25 3,30,5,50,a,somestring,b,42 26 1,10,3,30,4,40,5,50,a,somestring,b,42 27 0,t,1,e,2,s,3,t 28 [["0",-5],["1",10],["2",20],["3",30],["4",40],["5",50],["6",60]] 29 [["a",1],["b",2],["c",3]] 30 [["a",1],["b",2],["c",3]] [all …]
|