| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/33.constant_expression/ |
| D | constant_expression.params.yaml | 24 enum Bool { False = !true ? 1 : 2, True = !false ? 3 : 4 } 26 enum Unary { Plus = +3, Minus = -3, Tilda = ~3 } 28 enum Binary { Sum = 3 + 3, Sub = 3 - 3, Mul = 3 * 3, Div = 3 / 3, Mod = 3 % 3 } 30 enum Shift { Left = 3 << 3, Right = 3 >> 3, Unsigned = 3 >>> 3 } 32 …enum Comp { Less = 3 < 3 ? 1 : 2, Greater = 3 > 3 ? 3 : 4, EQGreater = 3 >= 3 ? 5 : 6, EQLess = 3 … 33 enum Comp2 { EQ = 3 == 3 ? 1 : 2, NotEQ = 3 != 3 ? 3 : 4 } 35 enum BitOp { And = 3 & 3, Xor = 3 ^ 3, Or = 3 | 3 } 37 enum Bool { Or = 3 || 3, And = 3 && 3 } 39 enum Parenthesized { Par = (3 + 3) }
|
| /arkcompiler/ets_runtime/test/aottest/createarrayimm16/ |
| D | createarrayimm16.ts | 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]; 28 let a9:number[] = [1, 2, 3]; [all …]
|
| /arkcompiler/ets_runtime/test/aottest/builtins_string/ |
| D | expect_output.txt | 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 27 sd-93u498thikefnow8y3-0rh1nalksfnwo8y3t19-3r8hoiefnw [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/grammar/compact/ |
| D | numericLiteralsWithTrailingDecimalPoints_expected.txt | 1 …3.;var i: number = 1;var compactTest1 = i.toString();var compactTest3 = 3..toString();var compactT…
|
| D | numericLiteralsWithTrailingDecimalPoints.ts | 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 34 var test122 = 3 [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 | 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"} 24 - {left: "2*3*4*5", right: "(2*3)*(4*5)"} 25 - {left: "2*3*4*5", right: "2*(3*4)*5"} 26 - {left: "2*3*4*5", right: "2*3*(4*5)"} [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/arrayEvery/ |
| D | expect_output.txt | 15 …:0,"array":[1,2,3,4]},{"value":2,"index":1,"array":[1,2,3,4]},{"value":3,"index":2,"array":[1,2,3,… 18 …"value":1,"index":0,"array":[1,2,-3,4]},{"value":2,"index":1,"array":[1,2,-3,4]},{"value":-3,"inde… 20 Test case 3: 27 Log: [{"value":3,"index":2,"array":[null,null,3,null,5]},{"value":5,"index":4,"array":[null,null,3,… 30 Log: [{"value":1,"index":0,"array":[1,null,3]},{"index":1,"array":[1,null,3]}] Result: false 42 Log: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]}] Result: true 48 …g: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]},{"value":3,"index"… 51 Log: [{"value":1,"index":0,"array":[1,2,3]}] Result: false 54 Log: [{"value":[1,2],"index":0,"array":[[1,2],[3,4]]},{"value":[3,4],"index":1,"array":[[1,2],[3,4]… 57 Log: [{"value":{"x":3},"index":0,"array":[{"x":3},{"x":3}]},{"value":{"x":3},"index":1,"array":[{"x… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/ |
| D | list.copyWithin.yaml | 16 expected: [1, 2, 3, 4, 5], 17 params: [6, 2, 3] 21 expected: [1, 2, 3, 4, 5], 22 params: [-3, 2, 3] 26 expected: [1, 2, 3, 4, 5], 27 params: [0, 6, 3] 31 expected: [1, 2, 3, 4, 5], 37 expected: [4, 5, 3, 4, 5], 38 params: [0, 3] 43 params: [1, 3] [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/escompat/ |
| D | list.copyWithin.yaml | 16 expected: [1, 2, 3, 4, 5], 17 params: [6, 2, 3] 21 expected: [1, 2, 3, 4, 5], 22 params: [-3, 2, 3] 26 expected: [1, 2, 3, 4, 5], 27 params: [0, 6, 3] 31 expected: [1, 2, 3, 4, 5], 37 expected: [4, 5, 3, 4, 5], 38 params: [0, 3] 43 params: [1, 3] [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/arrayfind/ |
| D | expect_output.txt | 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… 40 …:0,"array":[1,2,3,4]},{"value":2,"index":1,"array":[1,2,3,4]},{"value":3,"index":2,"array":[1,2,3,… 42 Find Test case 3: 49 …e":1,"index":0,"array":[1,2,3,4]},{"value":2,"index":1,"array":[1,2,3,4]},{"value":3,"index":2,"ar… 55 …lue":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]},{"value":3,"index":2,"arra… 61 …g: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]},{"value":3,"index"… 64 Log: [{"value":1,"index":0,"array":[1,2,3]}] Result: 1 67 …e":1,"index":0,"array":[1,2,3,4]},{"value":2,"index":1,"array":[1,2,3,4]},{"value":3,"index":2,"ar… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/ |
| D | DecodeURITest.ets | 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_runtime/test/moduletest/arrayconcat/ |
| D | expect_output.txt | 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 25 1 3 2 ab 1 [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/arrayfindindex/ |
| D | expect_output.txt | 18 … [{"value":1,"index":0,"array":[1,2,3,4]},{"value":2,"index":1,"array":[1,2,3,4]},{"value":3,"inde… 21 …:0,"array":[1,2,3,4]},{"value":2,"index":1,"array":[1,2,3,4]},{"value":3,"index":2,"array":[1,2,3,… 23 FindIndex Test case 3: 30 … [{"value":1,"index":0,"array":[1,2,3,4]},{"value":2,"index":1,"array":[1,2,3,4]},{"value":3,"inde… 36 …g: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]},{"value":3,"index"… 42 …g: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]},{"value":3,"index"… 45 Log: [{"value":1,"index":0,"array":[1,2,3]}] Result: 0 48 … [{"value":1,"index":0,"array":[1,2,3,4]},{"value":2,"index":1,"array":[1,2,3,4]},{"value":3,"inde… 60 …g: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]},{"value":3,"index"… 63 Log: [{"value":[1],"index":0,"array":[[1],[2],[3]]},{"value":[2],"index":1,"array":[[1],[2],[3]]}] … [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | ets_escompat_typed_arrays.ets | 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)) 37 let src = Int8Array.of(1, 2, 3, 4, 5) 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)) 71 let sample = Int8Array.of(1, 2, 3, 4) 84 let src = Int8Array.of(1, 2, 3, 4, 5) 104 let src = Int16Array.of(1, 2, 3, 4, 5) 108 check_array(dst, Int16Array.of(1, 2, 3, 4, 5, 77, 77, 77, 77, 77)) 118 let src = Int16Array.of(1, 2, 3, 4, 5) [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/arraySome/ |
| D | expect_output.txt | 15 …g: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]},{"value":3,"index"… 18 …g: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]},{"value":3,"index"… 20 Some Test Case 3: 27 Log: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]}] Result: true 30 Log: [{"value":null,"index":0,"array":[null,2,3]}] Result: true 33 …g: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]},{"value":3,"index"… 39 Log: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]}] Result: true 42 …g: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[1,2,3]},{"value":3,"index"… 45 Log: [{"value":1,"index":0,"array":[1,2,3]}] Result: true 51 Log: [{"value":1,"index":0,"array":[1,2,3]},{"value":2,"index":1,"array":[2,2,3]}] Result: true [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 | 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; 30 private bit1 : int = 7 & 3; 31 private bit2 : int = 7 | 3; 32 private bit3 : int = 7 ^ 3; 33 private b1 : boolean = 3 < 8; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/bindings/test/expected/ |
| D | getDocumentHighlights.json | 11 "length": 3 17 "kind": 3 23 "length": 3 35 "length": 3 56 "length": 3 62 "kind": 3 68 "length": 3 80 "length": 3 92 "3": { object 101 "length": 3 [all …]
|
| /arkcompiler/ets_runtime/test/aottest/pgo_fast_call_bridge/ |
| D | pgo_fast_call_bridge.ts | 29 f(prn, 1, 2); // 3 30 f(prn, 1, 2, 3); // 3 31 f(prn, 1, 2, 3, 4); // 3 32 f(prn, 1, 2, 3, 4, 5); // 3 33 f(prn, 1, 2, 3, 4, 5, 6); // 3 34 f(prn, 1, 2, 3, 4, 5, 6, 7); // 3 35 f(prn, 1, 2, 3, 4, 5, 6, 7, 8); // 3 36 f(prn, 1, 2, 3, 4, 5, 6, 7, 8, 9); // 3 37 f(prn, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10); // 3
|
| /arkcompiler/ets_runtime/test/sharedtest/sharedtypedarray/ |
| D | expect_output.txt | 54 From an iterable: 3, array: [1,2,3] 371 3 380 10 4 3 2 1 388 10 4 3 2 1 396 10 4 3 2 1 404 10 4 3 2 1 412 10 4 3 2 1 420 10 4 3 2 1 428 10 4 3 2 1 436 10 4 3 2 1 [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/array/ets_to_ts/ |
| D | ets_array.ets | 25 let arr: Array<Number> = new Array<Number>(1, 2, 3, 4) 26 let arrConcat1: Array<Number> = new Array<Number>(1, 2, 3, 4) 28 let arrayCopyWithin1: Array<Number> = new Array<Number>(1, 2, 3, 4) 29 let arrayCopyWithin2: Array<Number> = new Array<Number>(1, 2, 3, 4) 30 let arrayCopyWithin3: Array<Number> = new Array<Number>(1, 2, 3, 4) 31 let arrayFill: Array<Number> = new Array<Number>(1, 2, 3, 4) 32 let arrayFlat: FixedArray<FixedArray<number>> = [[1, 2], [3, 4], [5, 6]] 34 let arrayPop: Array<Number> = new Array<Number>(1, 2, 3, 4) 35 let arrayPush: Array<Number> = new Array<Number>(1, 2, 3, 4) 36 let arrayReverse: Array<Number> = new Array<Number>(1, 2, 3, 4) [all …]
|
| /arkcompiler/ets_runtime/test/aottest/classstatic/ |
| D | classstatic.ts | 40 static TwoC = 3; 44 static test3 = 3; 48 static test7 = 3; 52 static test11 = 3; 56 static test14 = 3; 60 static test18 = 3; 64 static test22 = 3; 68 static test26 = 3; 71 static test29 = 3; 74 static test32 = 3; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/03.operator_precedence/ |
| D | postfix.ets | 21 let res: int, t2 = 2, t3 = 3, t4 = 4, t8 = 8, t255 = 255 25 if (res != 2 || t2 != 3) return 1; 34 if (res != -2 || t2 != 3) return 1; 43 if (res != -3 || t2 != 3) return 1; 47 if (res != -3 || t2 != 1) return 1; 52 if (res != 8 || t2 != 3 || t4 != 3) return 1; 63 if (res != 2 || t2 != 3 || t4 != 3) return 1; 74 if (res != 3 || t255 != 254 || t4 != 5) return 1; 79 if (res != 3 || t255 != 256 || t4 != 3) return 1; 90 if (res != 259 || t255 != 256 || t4 != 3) return 1; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/array/ts_to_ets/ |
| D | ts_array.ts | 16 export let arr: Array<Number> = new Array<Number>(1, 2, 3, 4); 17 export let arrConcat1: Array<Number> = new Array<Number>(1, 2, 3, 4); 19 export let arrCopyWithin1: Array<Number> = new Array<Number>(1, 2, 3, 4); 20 export let arrCopyWithin2: Array<Number> = new Array<Number>(1, 2, 3, 4); 21 export let arrCopyWithin3: Array<Number> = new Array<Number>(1, 2, 3, 4); 22 export let arrFill: Array<Number> = new Array<Number>(1, 2, 3, 4); 23 export let arrFlat: number[][] = [[1, 2], [3, 4], [5, 6]]; 24 export let arrFlatMap: Array<Number> = new Array<Number>(1, 2, 3, 4); 26 export let arrPop: Array<Number> = new Array<Number>(1, 2, 3, 4); 27 export let arrPush: Array<Number> = new Array<Number>(1, 2, 3, 4); [all …]
|