| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/03.bigint_literals/ |
| D | bigint_func_n.params.yaml | 17 - 'BigInt(123 as byte) // wrong argument type' 18 - 'BigInt(new Int(1)) // wrong argument type' 19 - 'BigInt(new Object()) // wrong argument type' 20 - 'BigInt(null) // wrong argument type' 23 - 'BigInt.asIntN(1n, 0n) // wrong 1st argument type' 24 - 'BigInt.asIntN("5", 12345n) // wrong 1st argument type' 25 - 'BigInt.asIntN(32, 0 as byte) // wrong 2nd argument type' 26 - 'BigInt.asIntN(32, 12345) // wrong 2nd argument type' 29 - 'BigInt.asUintN(1n, 0n) // wrong 1st argument type' 30 - 'BigInt.asUintN("5", 12345n) // wrong 1st argument type' [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | ets_string_builder_append_merge_part4.sts | 285 assert append5() == "01234": 'Wrong result at append5()'; 286 assert append6() == "012345": 'Wrong result at append6()'; 287 assert append7() == "0123456": 'Wrong result at append7()'; 288 assert append8() == "01234567": 'Wrong result at append8()'; 290 assert append18() == "01234567891011121314151617": 'Wrong result at append18'; 291 assert chain_append4() == "0123": 'Wrong result at chain_append4'; 295 …assert append2(asciiString, asciiString) == "_xyz_xyz": 'Wrong result at append2(asciiString, asci… 296 …assert append2("str0" , asciiString) == "str0_xyz": 'Wrong result at append2("str0" , asci… 297 …assert append2(asciiString, "str1" ) == "_xyzstr1": 'Wrong result at append2(asciiString, "str… 298 …assert append2("str0" , "str1" ) == "str0str1": 'Wrong result at append2("str0" , "str… [all …]
|
| D | string_test.sts | 32 assert str2.charAt(0) == c'a': "Wrong str2.charAt(0)"; 33 assert str2.charAt(1) == c'B': "Wrong str2.charAt(1)"; 34 assert str2.charAt(2) == c'C': "Wrong str2.charAt(2)"; 35 assert str2.charAt(8) == c'z': "Wrong str2.charAt(8)"; 36 assert str2.charAt(8) != c'Z': "Wrong str2.charAt(8): invalid character case"; 39 assert str3.charAt(0) == c'a': "Wrong str3.charAt(0)"; 40 assert str3.charAt(1) == c'B': "Wrong str3.charAt(1)"; 41 assert str3.charAt(2) == c'C': "Wrong str3.charAt(2)"; 42 assert str3.charAt(8) == c'z': "Wrong str3.charAt(8)"; 43 assert str3.charAt(8) != c'Z': "Wrong str3.charAt(8): invalid character case";
|
| D | charAt.sts | 24 assert str.charAt(0) == c'a': "Wrong str.charAt(0)"; 25 assert str.charAt(1) == c'B': "Wrong str.charAt(1)"; 26 assert str.charAt(2) == c'C': "Wrong str.charAt(2)"; 27 assert str.charAt(3) == c'd': "Wrong str.charAt(3)";
|
| D | ets_string_builder_append_merge_part2.sts | 180 assert _0_if1_else1_2_append4(true ) == "023": 'Wrong result at _0_if1_else1_2_append4(true )'; 181 assert _0_if1_else1_2_append4(false) == "123": 'Wrong result at _0_if1_else1_2_append4(false)'; 182 assert _1_if1_else1_1_append4(true ) == "013": 'Wrong result at _1_if1_else1_1_append4(true )'; 183 assert _1_if1_else1_1_append4(false) == "023": 'Wrong result at _1_if1_else1_1_append4(false)'; 184 assert _2_if1_else1_0_append4(true ) == "012": 'Wrong result at _2_if1_else1_0_append4(true )'; 185 assert _2_if1_else1_0_append4(false) == "013": 'Wrong result at _2_if1_else1_0_append4(false)'; 186 assert _1_if2_else1_0_append4(true ) == "012": 'Wrong result at _1_if2_else1_0_append4(true )'; 187 assert _1_if2_else1_0_append4(false) == "03" : 'Wrong result at _1_if2_else1_0_append4(false)'; 188 assert _0_if2_else2_0_append4(true ) == "01" : 'Wrong result at _0_if2_else2_0_append4(true )'; 189 assert _0_if2_else2_0_append4(false) == "23" : 'Wrong result at _0_if2_else2_0_append4(false)';
|
| D | ets_string_builder_reserve_part30-44.sts | 355 assert try_finally_reserve31() == "01": "Wrong result at try_finally_reserve31"; 356 assert out_reserve32().append(1).toString() == "01": "Wrong result at out_reserve32"; 357 assert in_reserve33(new StringBuilder().append(0)) == "01": "Wrong result at in_reserve33"; 358 assert global_reserve34() == "0": "Wrong result at in_reserve34"; 359 assert 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 assert store_reserve39() == "012": "Wrong result at store_reserve39"; 363 assert chain_reserve40() == "012": "Wrong result at chain_reserve40"; 364 assert chain_reserve41("0") == "012": "Wrong result at chain_reserve41"; [all …]
|
| D | ets_string_builder_reserve_part01-10.sts | 252 assert reserve1() == "0": "Wrong result at reserve1"; 253 assert reserve2() == "01": "Wrong result at reserve2"; 254 assert loop_reserve3() == "012": "Wrong result at loop_reserve3"; 255 assert loop_reserve4() == "0123": "Wrong result at loop_reserve4"; 256 assert loop_reserve5() == "01234": "Wrong result at loop_reserve5"; 257 assert nested_loop_reserve6() == "012345678910111213": "Wrong result at nested_loop_reserve6"; 258 assert if_reserve7(true) == "0": "Wrong result at if_reserve7"; 259 assert if_reserve8(true) == "0123": "Wrong result at if_reserve8"; 260 assert if_loop_reserve9(true) == "012345": "Wrong result at if_loop_reserve9"; 261 assert loop_if_reserve10(true) == "012345678": "Wrong result at loop_if_reserve10";
|
| D | ets_string_builder_reserve_part11-19.sts | 238 assert uncountable_loop_reserve11() == "012": "Wrong result at uncountable_loop_reserve11"; 239 assert uncountable_loop_reserve12() == "012": "Wrong result at uncountable_loop_reserve12"; 240 assert uncountable_loop_reserve13() == "012": "Wrong result at uncountable_loop_reserve13"; 241 assert switch_reserve14(3) == "012": "Wrong result at switch_reserve14"; 242 assert switch_reserve15(3) == "0120123": "Wrong result at switch_reserve15"; 243 assert reverse_loop_reserve16() == "210": "Wrong result at reverse_loop_reserve16"; 244 assert step2_reverse_loop_reserve17() == "420": "Wrong result at step2_reverse_loop_reserve17"; 245 assert step2_reverse_loop_reserve18() == "531": "Wrong result at step2_reverse_loop_reserve18"; 246 assert step5_loop_reserve19() == "27121722": "Wrong result at step5_loop_reserve19";
|
| D | ets_string_concat_func.sts | 201 assert concat0("abcde") == "abcde": "Wrong result at concat0"; 202 assert concat1("abcd", "e") == "abcde": "Wrong result at concat1"; 203 assert concat2("abc", "d", "e") == "abcde": "Wrong result at concat2"; 204 assert concat3("ab", "c", "d", "e") == "abcde": "Wrong result at concat3"; 205 assert concat4("a", "b", "c", "d", "e") == "abcde": "Wrong result at concat4"; 206 assert concat5("", "a", "b", "c", "d", "e") == "abcde": "Wrong result at concat5"; 207 assert concat6() == "abcde": "Wrong result at concat6"; 208 assert concat7() == "abcde": "Wrong result at concat7"; 209 assert concat8("ab", "c", "d", "e") == "abcde": "Wrong result at concat8";
|
| D | ets_string_builder_reserve_part20-29.sts | 251 assert multi_toString_reserve20() == "001": "Wrong result at multi_toString_reserve20"; 252 assert multi_toString_if_reserve21() == "001": "Wrong result at multi_toString_if_reserve21"; 253 assert multi_toString_if_reserve22() == "": "Wrong result at multi_toString_if_reserve22"; 254 assert multi_toString_loop_reserve23() == "": "Wrong result at multi_toString_loop_reserve23"; 255 assert types_reserve24() == "false12345678[object Object]": "Wrong result at types_reserve24"; 256 assert lenArray_reserve25() == "012": "Wrong result at lenArray_reserve25"; 257 assert lenArray_reserve26() == "012": "Wrong result at lenArray_reserve26"; 258 assert lenArray_reserve27(["0", "1", "2"]) == "012": "Wrong result at lenArray_reserve27"; 259 assert lenArray_reserve28(["0", "1", "2"]) == "012": "Wrong result at lenArray_reserve28"; 260 …assert partially_uncountable_reserve29() == "2345672345678910": "Wrong result at partially_uncount…
|
| D | ets_string_builder_append_merge_part1.sts | 333 assert _0_toString_8_append8() == "01234567": 'Wrong result at _0_toString_8_append8()'; 334 assert _1_toString_7_append8() == "01234567": 'Wrong result at _1_toString_7_append8()'; 335 assert _2_toString_6_append8() == "01234567": 'Wrong result at _2_toString_6_append8()'; 336 assert _3_toString_5_append8() == "01234567": 'Wrong result at _3_toString_5_append8()'; 337 assert _4_toString_4_append8() == "01234567": 'Wrong result at _4_toString_4_append8()'; 338 assert _5_toString_3_append8() == "01234567": 'Wrong result at _5_toString_3_append8()'; 339 assert _6_toString_2_append8() == "01234567": 'Wrong result at _6_toString_2_append8()'; 340 assert _7_toString_1_append8() == "01234567": 'Wrong result at _7_toString_1_append8()'; 342 assert _1_append_2_append4() == "0123": 'Wrong result at _1_append_2_append4'; 343 assert _1_phi_2_append4(false) == "0123": 'Wrong result at _1_phi_2_append4(false)'; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/12.union_types/ |
| D | ut_n.params.yaml | 65 # Wrong literals in union 83 # Wrong type assignments 87 let v: UT = undefined // CTE: wrong value 92 let v: UT = null // CTE: wrong value 97 let v: UT = 'C' // CTE: wrong literal 102 let v: UT = true // CTE: wrong literal 109 let v: ABCD = '' // CTE: wrong literal 117 let v: UT = foo() // CTE: wrong type 125 let v: UT = foo() // CTE: wrong type 130 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 | 39 } // CTE, wrong key 46 } // CTE, wrong key 52 } // CTE, wrong key type 58 } // CTE, wrong key type 64 } // CTE, wrong key type, boolean is not allowed 67 let a: Record<Error, string> = {} // CTE, wrong key type, Error is not allowed 73 } // CTE, wrong value type 80 } // CTE, wrong value type 87 } // CTE, wrong value type 108 let b = a["1"] // CTE, wrong key type [all …]
|
| /arkcompiler/toolchain/tooling/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/03.types/08.reference_types/11.tuple_types/ |
| D | tt_n.params.yaml | 24 assert e[2] == true // wrong index 28 assert 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 e: [Error] = [new Object()] // wrong type 79 let t: [number, number, number] = v // wrong type 83 let p: [boolean] = t as [boolean] // wrong cast
|
| /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 = 1; // 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/napi/sampler/ |
| D | SamplerNapiTest.sts | 22 // throw new Exception("ERROR: CallNativeSlowFunction worked wrong"); 28 // throw new Exception("ERROR: CallNativeFastFunction worked wrong"); 34 // throw new Exception("ERROR: CallNativeNAPISlowFunction worked wrong"); 40 // throw new Exception("ERROR: CallNativeNAPIFastFunction worked wrong"); 54 // throw new Exception("ERROR: CallNativeSlowFunction worked wrong"); 60 // throw new Exception("ERROR: CallNativeFastFunction worked wrong"); 66 // throw new Exception("ERROR: CallNativeNAPISlowFunction worked wrong"); 72 // throw new Exception("ERROR: CallNativeNAPIFastFunction worked wrong");
|
| /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 68 let v: A = new <B> A(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/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/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/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
|