| /arkcompiler/ets_runtime/test/sharedtest/sharedtypedarray/ |
| D | expect_output.txt | 105 10,11,12,13,14 107 10,11,12,13,14 111 10,11,12,13,14 113 10,11,12,13,14 117 10,11,12,13,14 119 10,11,12,13,14 123 10,11,12,13,14 125 10,11,12,13,14 129 10,11,12,13,14 131 10,11,12,13,14 [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/ |
| D | list.std_core_type_array_type.yaml | 17 array_sizes: {1, 2, 10, 100}, 22 array_sizes: {1, 2, 10, 100}, 27 array_sizes: {1, 2, 10, 100}, 32 array_sizes: {1, 2, 10, 100}, 37 array_sizes: {1, 2, 10, 100}, 42 array_sizes: {1, 2, 10, 100}, 47 array_sizes: {1, 2, 10, 100}, 52 array_sizes: {1, 2, 10, 100}, 57 array_sizes: {1, 2, 10, 100}, 62 array_sizes: {1, 2, 10, 100}, [all …]
|
| D | list.std_core_array_copyOf.yaml | 85 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 91 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 92 startIndex: 10, 97 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 103 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 117 test2: "[10, 11, 12, 13, 14]", 119 test4: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 136 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 142 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 143 startIndex: 10, [all …]
|
| D | list.std_core_array_copyOf_2.yaml | 87 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 92 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 97 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 102 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 107 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 118 test1: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 119 test2: "[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 120 test3: "[8, 9, 10, 11, 12, 13, 14, 15]", 140 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", 145 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]", [all …]
|
| D | list.std_core_array_sort.yaml | 73 arr: "[-2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]", 79 arr: "[4, 3, 2, -11, 0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]", 85 arr: "[0, 1, 2, 3, 4, 5, 9, 8, 7, 6, 10, 11, 12, 13, 14, 15, 16]", 87 endIndex: 10, 91 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 16, 15, 14, 13]", 97 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 10, 12, 13, 14, 15, 16]", 98 startIndex: 10, 103 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 10, 12, 13, 14, 15, 16]", 117 test1: "[-2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]", 118 test2: "[-11, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]", [all …]
|
| D | list.std_core_array_fill.yaml | 88 arr: "[0 ,1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]", 95 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]", 102 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]", 109 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]", 116 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]", 124 test1: "[0, 0, 0, 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]", 126 test3: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 0, 0, 16]", 128 test5: "[0, 1, 2, 3, 4, 5, 6, 7, 0, 9, 10, 11, 12, 13, 14, 15, 16]", 145 arr: "[0 ,1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]", 152 arr: "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]", [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/containers/concurrent_hash_map/ |
| D | ConcurrentHashMap_SetTest_One.ets | 20 let arrKeysTest: number[] = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]; 27 for (let i: int = 0; i < 10 ; i++) { 37 for (let i = 0; i < 10; i++) { 42 assertEQ(concurrentHashMap.size, 10); 47 concurrentHashMap.set(10, "ten"); 50 for (let i: int = 0; i < 10 ; i++) { 57 assertEQ(concurrentHashMap.get(10), "ten"); 64 assertEQ(concurrentHashMap.size, 10); 66 for (let i: int = 0; i < 10 ; i++) { 80 for (let i: int = 0; i < 10 ; i++) { [all …]
|
| D | ConcurrentHashMap_RemoveTest.ets | 20 let arrKeysTest: number[] = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]; 27 for (let i: int = 0; i < 10 ; i++) { 50 assertEQ(concurrentHashMap.remove(10), undefined); 57 for (let i = 0; i < 10; i++) { 60 assertEQ(concurrentHashMap.size, 10); 61 for (let i = 0; i < 10; i++) { 82 for (let i: int = 0; i < 10; i++) { 88 for (let i = 0; i < 10; i++) {
|
| D | ConcurrentHashMap_ConstructorTest.ets | 21 for (let i: int = 0; i < 10 ; i++) { 33 let array = Array<[Number, string]>(10); 34 for (let i = 0; i < 10; i++) { 40 assertEQ(concurrentHashMap.size, 10); 41 for (let i = 0; i < 10; i++) { 47 let arr: Array<[Number, string]> = new Array<[Number, string]>(10); 48 for (let i: int = 0; i < 10 ; i++) { 53 assertEQ(concurrentHashMap.size, 10); 54 for (let i: int = 0; i < 10 ; i++) { 62 for (let i = 0; i < 10; i++) { [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/ |
| D | ScopeHelper.ets | 59 let sh = createScopeHelper(10, 30) 69 res = sh.intersect(new NumberType(10), new NumberType(30)) 70 assertEQ(res.getLower().n, 10) 74 assertEQ(res.getLower().n, 10) 79 let sh = createScopeHelper(10, 30) 82 assertEQ(sh.intersect(other).getLower().n, 10) 85 other = createScopeHelper(10, 20) 86 assertEQ(sh.intersect(other).getLower().n, 10) 94 assertEQ(sh.intersect(other).getLower().n, 10) 99 let sh = createScopeHelper(10, 30) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/containers/concurrent_set/ |
| D | ConcurrentSet_ForEachTest_Two.ets | 20 let arrKeysOne: number[] = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]; 21 let arrKeysTwo: number[] = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]; 80 assertEQ(ConcurrentSetTestOne.size, 10); 116 for (let i: int = 0; i < 10 ; i++) { 122 for (let i: int = 0; i < 10 ; i++) {
|
| D | ConcurrentSet_ForEachTest_Three.ets | 20 let arrKeysOne: number[] = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]; 21 let arrKeysTwo: number[] = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]; 80 assertEQ(ConcurrentSetTestOne.size, 10); 117 for (let i: int = 0; i < 10 ; i++) { 123 for (let i: int = 0; i < 10 ; i++) {
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | record_record_value.ets | 49 "john":{age1:25, salary1:10}, 52 assertsalary1(personMap1.get("john"), 10); 55 "john":{age3:{age2:{age1:10,salary1:10},salary2:10},salary3:10}, 56 "Mary":{age3:{age2:{age1:10,salary1:10},salary2:10},salary3:10} 58 assertsalary3(nestedObjectMap.get("john"), 10);
|
| D | DefaultParam_1.ets | 17 assertEQ(foo1(), 10) 25 assertEQ(foo5(5, 10), 45) 33 assertEQ(foo13(10), 15) 34 assertEQ(foo14(10), 25) 36 assertEQ(foo15(10, 5), 20) 37 assertEQ(foo16(10, 5), 30) 40 function foo1(a: int = 10): int { 52 function foo4(a: int = 10, b: int = 20): int { 56 function foo5(a: int = 10, b: int = 20, c: int = 30): int { 78 function foo14(a: int, b: int = 5, c: int = 10): int { [all …]
|
| /arkcompiler/ets_runtime/test/aottest/builtin_inlining/math/Log10/ |
| D | builtinMathLog10.ts | 42 res = Math.log10(10); 47 res = Math.log10(10, 10); 52 res = Math.log10(10, 10, 10); 57 res = Math.log10(10, 10, 10, 10); 62 res = Math.log10(10, 10, 10, 10, 10); 68 print(Math.log10(10)); //: 1
|
| /arkcompiler/ets_runtime/test/aottest/builtins_array/ |
| D | builtins_array.ts | 51 for (var i = 0; i < 10; i++) { 59 for (let i = 0; i < 10; i++) array.push(i); 67 for (let i = 0; i < 10; i++) array.push(i); 68 array.splice(0, 10); 73 for (let i = 0; i < 10; i++) array.push(i); 79 for (let i = 0; i < 10; i++) array.push(i); 80 for (let i = 0; i < 10; i++) { 81 const condition = (element) => element < 10; 88 for (let i = 0; i < 10; i++) array.push(i); 89 const condition = (element) => element < 10; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/tolocalestr/ |
| D | DateLocaleStringTest.ets | 17 const date = new Date(2024, 1, 19, 10, 0, 0) 22 assertEQ(date.toLocaleString(langTag), "2024/2/19 10:00:00") 23 assertEQ(date.toLocaleString(locale), "2024/2/19 10:00:00") 27 assertEQ(date.toLocaleString(locale, options), "10:00:00") 31 const date = new Date(2024, 1, 19, 10, 0, 0) 36 assertEQ(date.toLocaleTimeString(langTag), "10:00:00") 37 assertEQ(date.toLocaleTimeString(locale), "10:00:00") 47 assertEQ(date.toLocaleTimeString(langTag, options), "24/02/19 10:00") 48 assertEQ(date.toLocaleTimeString(locale, options), "24/02/19 10:00") 51 assertEQ(date.toLocaleTimeString(langTag, { hour: "2-digit", minute: "2-digit" }), "10:00") [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | function_spread_arg.ets | 42 let a5 = new Array(10) 43 let a6 = new Int8Array(10) 44 let a7 = new Uint8Array(10) 45 let a8 = new Uint8ClampedArray(10) 46 let a9 = new Int16Array(10) 47 let a10 = new Uint16Array(10) 48 let a11 = new Int32Array(10) 49 let a12 = new Uint32Array(10) 50 let a13 = new Float32Array(10) 51 let a14 = new Float64Array(10) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/dateformat/ |
| D | IntlTimeFormatOptionsTest.ets | 27 const testDate = new Date("2023-10-05T15:10:20.345Z") 29 …minute: "2-digit", second: "2-digit", fractionalSecondDigits: 3, timeZone: "UTC" }, "15:10:20.345") 30 … minute: "2-digit", second: "2-digit", fractionalSecondDigits: 2, timeZone: "UTC" }, "15:10:20.34") 31 …, minute: "2-digit", second: "2-digit", fractionalSecondDigits: 1, timeZone: "UTC" }, "15:10:20.3") 33 …digit", second: "2-digit", timeZone: "Europe/Berlin", timeZoneName: "short" }, "05:10:20 PM GMT+2") 34 … second: "2-digit", timeZone: "Europe/Berlin", timeZoneName: "long" }, "05:10:20 PM Central Europe… 35 …: "2-digit", timeZone: "Europe/Berlin", timeZoneName: "shortGeneric" }, "05:10:20 PM Germany Time") 36 …, second: "2-digit", timeZone: "Europe/Berlin", timeZoneName: "shortOffset" }, "05:10:20 PM GMT+2") 37 …: "2-digit", timeZone: "Europe/Berlin", timeZoneName: "longGeneric" }, "05:10:20 PM Central Europe… 38 …econd: "2-digit", timeZone: "Europe/Berlin", timeZoneName: "longOffset" }, "05:10:20 PM GMT+02:00") [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/33.constant_expression/check_enum/ |
| D | constant_bitwise_expression.params.yaml | 15 - { type: byte, value: 10, expression: '& 7', expected: 2 } 16 - { type: byte, value: 10, expression: '| 7', expected: 15 } 17 - { type: byte, value: 10, expression: '^ 7', expected: 13 } 19 - { type: short, value: 10, expression: '& 7', expected: 2 } 20 - { type: short, value: 10, expression: '| 7', expected: 15 } 21 - { type: short, value: 10, expression: '^ 7', expected: 13 } 23 - { type: int, value: 10, expression: '& 7', expected: 2 } 24 - { type: int, value: 10, expression: '| 7', expected: 15 } 25 - { type: int, value: 10, expression: '^ 7', expected: 13 } 27 - { type: long, value: 10, expression: '& 7', expected: 2 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/33.constant_expression/check_array/ |
| D | constant_bitwise_expression.params.yaml | 15 - { type: byte, value: 10, expression: '& 7', expected: 2 } 16 - { type: byte, value: 10, expression: '| 7', expected: 15 } 17 - { type: byte, value: 10, expression: '^ 7', expected: 13 } 19 - { type: short, value: 10, expression: '& 7', expected: 2 } 20 - { type: short, value: 10, expression: '| 7', expected: 15 } 21 - { type: short, value: 10, expression: '^ 7', expected: 13 } 23 - { type: int, value: 10, expression: '& 7', expected: 2 } 24 - { type: int, value: 10, expression: '| 7', expected: 15 } 25 - { type: int, value: 10, expression: '^ 7', expected: 13 } 27 - { type: long, value: 10, expression: '& 7', expected: 2 } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/escompat/ |
| D | list.escompat_BigInt_instance.yaml | 58 init_object_data: "[10, 1024, -556, 100000, 0]", 63 param_list: {"param1": '[2, 10, 16, 8, 20]'}, 90 param_list: {"param1": '[2, 7, 8, 10, 16, 25, 33, 36]'}, 125 param_list: {"param1": '[2, 7, 8, 10, 16, 25, 33, 36]'}, 160 param_list: {"param1": '[2, 7, 8, 10, 16, 25, 33, 36]'}, 195 param_list: {"param1": '[2, 7, 8, 10, 16, 25, 33, 36]'}, 230 param_list: {"param1": '[2, 7, 8, 10, 16, 25, 33, 36]'}, 265 param_list: {"param1": '[2, 7, 8, 10, 16, 25, 33, 36]'}, 300 param_list: {"param1": '[2, 7, 8, 10, 16, 25, 33, 36]'}, 335 param_list: {"param1": '[2, 7, 8, 10, 16, 25, 33, 36]'}, [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/07.expressions/7.5.Object_Literal/7.5.3.Object_Literal_of_Record_Type/ |
| D | record-boxable-types.ets | 22 "hello": 10, 27 assertEQ( string_number.get("hello"), 10) 31 "hello": 10, 36 assertEQ( string_double.get("hello"), 10) 40 "hello": 10, 45 assertEQ( string_float.get("hello"), 10) 49 "hello": 10, 54 assertEQ( string_long.get("hello"), 10) 58 "hello": 10, 63 assertEQ( string_int.get("hello"), 10)
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/containers/ |
| D | ArrayAsListIntTest.ets | 62 let list = new ArrayAsListInt(10); 80 let list = new ArrayAsListInt(10); 81 for(let i: int = 0; i< 10; i++) { 84 let result = list.size() == 10 ? 0 : 1; 90 let list = new ArrayAsListInt(10, value); 91 for(let i: int = 0; i< 10; i++) { 94 let result = list.size() == 10 ? 0 : 1; 99 let value = 10; 100 let list = new ArrayAsListInt(10, value); 101 for(let i: int; i< 10; i++) { [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/extension_accessor/ |
| D | extensionAccessorInOpAssignment.ets | 48 let u = obj.field + 10; 50 let i = 10 + obj.field; 52 u = 10 + obj.field + obj.field + 10; 53 obj.field = 10 + obj.field + obj.field + 10; 57 obj.field = 10; 59 assertEQ(k, 10) 63 assertEQ(k, 10) 69 obj.field = obj.field + 10; 73 obj.field = 10 + obj.field; 77 obj.field = 10 * obj.field;
|