| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | ets_string_builder_append_merge_part4.ets | 281 assertEQ(append5(), "01234", 'Wrong result at append5()'); 282 assertEQ(append6(), "012345", 'Wrong result at append6()'); 283 assertEQ(append7(), "0123456", 'Wrong result at append7()'); 284 assertEQ(append8(), "01234567", 'Wrong result at append8()'); 286 assertEQ(append18(), "01234567891011121314151617", 'Wrong result at append18'); 287 assertEQ(chain_append4(), "0123", 'Wrong result at chain_append4'); 291 …assertEQ(append2(asciiString, asciiString), "_xyz_xyz", 'Wrong result at append2(asciiString, asc… 292 …assertEQ(append2("str0" , asciiString), "str0_xyz", 'Wrong result at append2("str0" , asc… 293 …assertEQ(append2(asciiString, "str1" ), "_xyzstr1", 'Wrong result at append2(asciiString, "st… 294 …assertEQ(append2("str0" , "str1" ), "str0str1", 'Wrong result at append2("str0" , "st… [all …]
|
| D | string_test.ets | 32 assertEQ(str2.charAt(0), c'a', "Wrong str2.charAt(0)"); 33 assertEQ(str2.charAt(1), c'B', "Wrong str2.charAt(1)"); 34 assertEQ(str2.charAt(2), c'C', "Wrong str2.charAt(2)"); 35 assertEQ(str2.charAt(8), c'z', "Wrong str2.charAt(8)"); 39 assertEQ(str3.charAt(0), c'a', "Wrong str3.charAt(0)"); 40 assertEQ(str3.charAt(1), c'B', "Wrong str3.charAt(1)"); 41 assertEQ(str3.charAt(2), c'C', "Wrong str3.charAt(2)"); 42 assertEQ(str3.charAt(8), c'z', "Wrong str3.charAt(8)");
|
| D | charAt.ets | 24 assertEQ(str.charAt(0), c'a', "Wrong str.charAt(0)"); 25 assertEQ(str.charAt(1), c'B', "Wrong str.charAt(1)"); 26 assertEQ(str.charAt(2), c'C', "Wrong str.charAt(2)"); 27 assertEQ(str.charAt(3), c'd', "Wrong str.charAt(3)");
|
| D | ets_string_builder_append_merge_part2.ets | 176 assertEQ(_0_if1_else1_2_append4(true ), "023", 'Wrong result at _0_if1_else1_2_append4(true )'); 177 assertEQ(_0_if1_else1_2_append4(false), "123", 'Wrong result at _0_if1_else1_2_append4(false)'); 178 assertEQ(_1_if1_else1_1_append4(true ), "013", 'Wrong result at _1_if1_else1_1_append4(true )'); 179 assertEQ(_1_if1_else1_1_append4(false), "023", 'Wrong result at _1_if1_else1_1_append4(false)'); 180 assertEQ(_2_if1_else1_0_append4(true ), "012", 'Wrong result at _2_if1_else1_0_append4(true )'); 181 assertEQ(_2_if1_else1_0_append4(false), "013", 'Wrong result at _2_if1_else1_0_append4(false)'); 182 assertEQ(_1_if2_else1_0_append4(true ), "012", 'Wrong result at _1_if2_else1_0_append4(true )'); 183 assertEQ(_1_if2_else1_0_append4(false), "03" , 'Wrong result at _1_if2_else1_0_append4(false)'); 184 assertEQ(_0_if2_else2_0_append4(true ), "01" , 'Wrong result at _0_if2_else2_0_append4(true )'); 185 assertEQ(_0_if2_else2_0_append4(false), "23" , 'Wrong result at _0_if2_else2_0_append4(false)');
|
| D | ets_string_builder_reserve_part30-44.ets | 355 assertEQ(try_finally_reserve31(), "01", "Wrong result at try_finally_reserve31"); 356 assertEQ(out_reserve32().append(1).toString(), "01", "Wrong result at out_reserve32"); 357 assertEQ(in_reserve33(new StringBuilder().append(0)), "01", "Wrong result at in_reserve33"); 358 assertEQ(global_reserve34(), "0", "Wrong result at in_reserve34"); 359 assertEQ(chain_reserve35(), "01", "Wrong result at chain_reserve35"); 360 …bcΣΨΩ0123456789 true false 57 127 32767 128934675 701234987654321 null", "Wrong result at more_typ… 361 …), "223456789103234567891042345678910523456789106234567891072345678910", "Wrong result at nested_l… 362 assertEQ(store_reserve39(), "012", "Wrong result at store_reserve39"); 363 assertEQ(chain_reserve40(), "012", "Wrong result at chain_reserve40"); 364 assertEQ(chain_reserve41("0"), "012", "Wrong result at chain_reserve41"); [all …]
|
| D | ets_string_builder_reserve_part01-10.ets | 252 assertEQ(reserve1(), "0", "Wrong result at reserve1") 253 assertEQ(reserve2(), "01", "Wrong result at reserve2") 254 assertEQ(loop_reserve3(), "012", "Wrong result at loop_reserve3") 255 assertEQ(loop_reserve4(), "0123", "Wrong result at loop_reserve4") 256 assertEQ(loop_reserve5(), "01234", "Wrong result at loop_reserve5") 257 assertEQ(nested_loop_reserve6(), "012345678910111213", "Wrong result at nested_loop_reserve6") 258 assertEQ(if_reserve7(true), "0", "Wrong result at if_reserve7") 259 assertEQ(if_reserve8(true), "0123", "Wrong result at if_reserve8") 260 assertEQ(if_loop_reserve9(true), "012345", "Wrong result at if_loop_reserve9") 261 assertEQ(loop_if_reserve10(true), "012345678", "Wrong result at loop_if_reserve10")
|
| D | ets_string_concat_func.ets | 201 assertEQ(concat0("abcde"), "abcde", "Wrong result at concat0") 202 assertEQ(concat1("abcd", "e"), "abcde", "Wrong result at concat1") 203 assertEQ(concat2("abc", "d", "e"), "abcde", "Wrong result at concat2") 204 assertEQ(concat3("ab", "c", "d", "e"), "abcde", "Wrong result at concat3") 205 assertEQ(concat4("a", "b", "c", "d", "e"), "abcde", "Wrong result at concat4") 206 assertEQ(concat5("", "a", "b", "c", "d", "e"), "abcde", "Wrong result at concat5") 207 assertEQ(concat6(), "abcde", "Wrong result at concat6") 208 assertEQ(concat7(), "abcde", "Wrong result at concat7") 209 assertEQ(concat8("ab", "c", "d", "e"), "abcde", "Wrong result at concat8")
|
| D | ets_string_builder_reserve_part11-19.ets | 238 assertEQ(uncountable_loop_reserve11(), "012", "Wrong result at uncountable_loop_reserve11") 239 assertEQ(uncountable_loop_reserve12(), "012", "Wrong result at uncountable_loop_reserve12") 240 assertEQ(uncountable_loop_reserve13(), "012", "Wrong result at uncountable_loop_reserve13") 241 assertEQ(switch_reserve14(3), "012", "Wrong result at switch_reserve14") 242 assertEQ(switch_reserve15(3), "0120123", "Wrong result at switch_reserve15") 243 assertEQ(reverse_loop_reserve16(), "210", "Wrong result at reverse_loop_reserve16") 244 assertEQ(step2_reverse_loop_reserve17(), "420", "Wrong result at step2_reverse_loop_reserve17") 245 assertEQ(step2_reverse_loop_reserve18(), "531", "Wrong result at step2_reverse_loop_reserve18") 246 assertEQ(step5_loop_reserve19(), "27121722", "Wrong result at step5_loop_reserve19")
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/04.bigint_literals/ |
| D | bigint_func_n.params.yaml | 17 - 'BigInt(new Object()) // wrong argument type' 18 - 'BigInt(null) // wrong argument type' 19 - 'BigInt(undefined) // wrong argument type' 22 - 'BigInt.asIntN(1n, 0n) // wrong 1st argument type' 23 - 'BigInt.asIntN("5", 12345n) // wrong 1st argument type' 24 - 'BigInt.asIntN(32, 0 as byte) // wrong 2nd argument type' 25 - 'BigInt.asIntN(32, 12345) // wrong 2nd argument type' 28 - 'BigInt.asUintN(1n, 0n) // wrong 1st argument type' 29 - 'BigInt.asUintN("5", 12345n) // wrong 1st argument type' 30 - 'BigInt.asUintN(32, 0 as short) // wrong 2nd argument type' [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/19.union_types/ |
| D | ut_n.params.yaml | 47 # Wrong literals in union 65 # Wrong type assignments 69 let v: UT = undefined // CTE: wrong value 74 let v: UT = null // CTE: wrong value 79 let v: UT = 'C' // CTE: wrong literal 84 let v: UT = true // CTE: wrong literal 91 let v: ABCD = '' // CTE: wrong literal 99 let v: UT = foo() // CTE: wrong type 107 let v: UT = foo() // CTE: wrong type 112 let v: UT[] = ['hello', 42] // CTE: wrong element type [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/05.object_literal/03.object_literal_of_record_type/ |
| D | re_n.params.yaml | 41 } // CTE, wrong key 49 } // CTE, wrong key 56 } // CTE, wrong key type 63 } // CTE, wrong key type 70 } // CTE, wrong key type, boolean is not allowed 74 let a: Record<Error, string> = {} // CTE, wrong key type, Error is not allowed 81 } // CTE, wrong value type 89 } // CTE, wrong value type 97 } // CTE, wrong value type 121 let b = a["1"] // CTE, wrong key type [all …]
|
| /arkcompiler/toolchain/tooling/dynamic/base/ |
| D | pt_params.cpp | 30 error += "Wrong type of 'maxScriptsCacheSize';"; in Create() 46 error += "Wrong type of 'options';"; in Create() 70 error += "Unknown or wrong type of 'callFrameId';"; in Create() 77 error += "Unknown or wrong type of 'expression';"; in Create() 84 error += "Wrong type of 'objectGroup';"; in Create() 91 error += "Wrong type of 'includeCommandLineAPI';"; in Create() 98 error += "Wrong type of 'silent';"; in Create() 105 error += "Wrong type of 'returnByValue';"; in Create() 112 error += "Wrong type of 'generatePreview';"; in Create() 119 error += "Wrong type of 'throwOnSideEffect';"; in Create() [all …]
|
| D | pt_types.cpp | 1014 error += "Unknown or wrong type of 'type';"; in Create() 1026 error += "Wrong type of 'subtype';"; in Create() 1034 error += "Wrong type of 'className';"; in Create() 1042 error += "Wrong type of 'unserializableValue';"; in Create() 1050 error += "Wrong type of 'description';"; in Create() 1060 error += "Wrong type of 'objectId';"; in Create() 1106 error += "Unknown or wrong type of 'exceptionId';"; in Create() 1114 error += "Unknown or wrong type of 'text';"; in Create() 1122 error += "Unknown or wrong type of 'lineNumber';"; in Create() 1130 error += "Unknown or wrong type of 'columnNumber';"; in Create() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/07.variable_and_constant_declarations/01.variable_declarations/ |
| D | incorrect_var_decl.params.yaml | 18 - 'let x:int = new Object(); // Wrong type' 19 - 'let x:Object|null = undefined; // Wrong type' 20 - 'const v:Object|null = null; let x:Object = v; // Wrong type' 21 - 'let x = "true", y:boolean = x; // Wrong type' 22 - 'let y:boolean = new Object(); // Wrong type'
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/tooling/sampler/native/ |
| D | SamplerAniTest.ets | 22 // throw new Exception("ERROR: CallNativeSlowFunction worked wrong"); 28 // throw new Exception("ERROR: CallNativeFastFunction worked wrong"); 34 // throw new Exception("ERROR: CallNativeANISlowFunction worked wrong"); 40 // throw new Exception("ERROR: CallNativeANIFastFunction worked wrong"); 54 // throw new Exception("ERROR: CallNativeSlowFunction worked wrong"); 60 // throw new Exception("ERROR: CallNativeFastFunction worked wrong"); 66 // throw new Exception("ERROR: CallNativeANISlowFunction worked wrong"); 72 // throw new Exception("ERROR: CallNativeANIFastFunction worked wrong");
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/17.tuple_types/ |
| D | tt_n.params.yaml | 24 assertTrue( e[2] == true ) // wrong index 28 assertTrue( e[-1] == true ) // wrong index 66 let e: [number] = ["A"] // wrong type 69 let e: [boolean] = ["A"] // wrong type 72 let e: [char] = [true] // wrong type 75 let v: [1|2|3] = [1] // wrong type 78 let e: [Error] = [new Object()] // wrong type 82 let t: [number, number, number] = v // wrong type 86 let p: [boolean] = t as [boolean] // wrong cast
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/02.generic_instantiations/01.type_arguments/type_arguments_of_parameterized_declarations/ |
| D | constr_args1_neg.params.yaml | 27 let v: A = new <X> A(new X()) // wrong bound 31 let v: A = new <X|null> A(null) // wrong bound 39 let v: A = new <J|null> A(null) // wrong bound 44 let v: A = new <X[]> A(new Object[0]) // wrong array type 47 let v: A = new <X[]> A(new X[0]) // wrong bound 55 let v: A = new <X[]|null> A(null) // wrong bound 72 let v: A = new <B> A(new X[0]) // wrong bound
|
| D | constr_args4_neg.params.yaml | 27 let v: A<X> = new A<X> (new X()) // wrong bound 31 let v: A<X|null> = new A<X|null> (null) // wrong bound 39 let v: A<J|null> = new A<J|null> (null) // wrong bound 44 let v: A<X[]> = new A<X[]> (new Object[0]) // wrong array type 47 let v: A<X[]> = new A<X[]> (new X[0]) // wrong bound 55 let v: A<X[]|null> = new A<X[]|null> (null) // wrong bound 68 let v: A<B> = new A<B> (new X[0]) // wrong bound
|
| /arkcompiler/ets_frontend/ets2panda/test/tsconfig/test-build/extends/node_modules/package/ |
| D | tsconfig-base-base.json | 3 "outDir": "wrong-out", 4 "rootDir": "wrong-root"
|
| /arkcompiler/runtime_core/tests/checked/verify_aot_tests/ |
| D | verify_aot_test.pa | 36 #! CHECKER Wrong AOT file with cha 42 #! CHECKER Wrong AOT file without cha 48 #! CHECKER Wrong path to AOT file with cha 54 #! CHECKER Wrong path to AOT file without cha 60 #! CHECKER Wrong path to boot panda files 71 #! CHECKER Wrong file in boot-locations 75 #! CHECKER Wrong numbers of files in boot-locations
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/04.array_literal/01.type_inference_from_context/ |
| D | arr_inf_n.params.yaml | 17 let a: number[] = ["a", "b"] // wrong types 20 let a: int[] = [true] // wrong type 23 let a: string[] = ["a", null] // wrong type
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/11.enumerations/01.enumeration_integer_values/ |
| D | enum_int_n.params.yaml | 27 enum Enum { first = 1.0, second, third } // wrong init type 32 enum Enum { first = 10e1, second, third } // wrong init type 37 enum Enum { first = true, second = false } // wrong init type 52 let v: Enum2 = Enum1.first // wrong type
|
| /arkcompiler/runtime_core/static_core/tests/checked/verify_aot_tests/ |
| D | verify_aot_test.pa | 36 #! CHECKER Wrong AOT file with cha 42 #! CHECKER Wrong AOT file without cha 48 #! CHECKER Wrong path to AOT file with cha 54 #! CHECKER Wrong path to AOT file without cha 60 #! CHECKER Wrong path to boot panda files 71 #! CHECKER Wrong file in boot-locations 75 #! CHECKER Wrong numbers of files in boot-locations 86 #! CHECKER Wrong AOT file with relative path
|
| /arkcompiler/runtime_core/static_core/verification/ |
| D | messages.yaml | 155 ${reg} is of wrong type: '${reg_type}'. Expected a subtype of one from ${target_types}. 178 Wrong array element type '${type}'. Expected a subtype of '${expected_type}'. 184 Wrong type of array elements '${type}'. Expected '${expected_type}'. 190 Wrong type of array elements '${type}'. Expected one of ${expected_types}. 236 Wrong return value type (in accumulator): '${acc_type}' 242 … Wrong return value type (in accumulator): '${acc_type}'. Expected a subtype of '${expected_type}'. 261 Wrong type for 'checkcast'. It is a non-object type '${type}'. 307 Wrong type for 'isinstance'. It is a non-object/non-array type '${type}'. 384 Cannot make a call to '${name}' because of wrong type in register v${reg_idx}. 390 …Cannot make a call to '${name}' because of wrong type in actual parameter. Actual type: '${actual_… [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/extension_accessor_tests/ |
| D | extensionGetterInWrongUsage.ets | 35 /* @@@ label1 Error TypeError: Extension getter in wrong usage */ 36 /* @@@ label2 Error TypeError: Extension getter in wrong usage */ 37 /* @@@ label3 Error TypeError: Extension getter in wrong usage */
|