| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/ |
| D | IntlNumberFormatTest.sts | 63 const expected = exp[j][i]; 64 if (CheckFormatNumber(locale, funcName, values[j], expected) == fail) { 82 const expected = exp[j][i]; 83 if (CheckFormatUnion(locale, funcName, values[j], expected) == fail) { 101 const expected = exp[j][i]; 102 if (CheckFormatUnion(locale, funcName, values[j], expected) == fail) { 112 let expected = new Array<string>(languageCodes.length); 113 for (let i: int = 0; i < expected.length; ++i) { 114 expected[i] = new string(""); 116 expected[EN] = String.fromCharCode(49, 44, 50, 51, 52, 46, 53); [all …]
|
| D | IntlNumberFormatRangePosNegTest.sts | 56 let expected = new Array<string>(languageCodes.length); 57 for (let i: int = 0; i < expected.length; ++i) { 58 expected[i] = new string(""); 60 expected[EN] = String.fromCharCode(49, 44, 50, 51, 52, 46, 53); 61 expected[FR] = String.fromCharCode(49, 8239, 50, 51, 52, 44, 53); 62 expected[ES] = String.fromCharCode(49, 46, 50, 51, 52, 44, 53); 63 expected[GR] = expected[ES]; 64 expected[NO] = String.fromCharCode(49, 160, 50, 51, 52, 44, 53); 65 expected[IT] = expected[GR]; 66 expected[CH] = expected[EN]; [all …]
|
| D | IntlNumberFormatRangeNegPosTest.sts | 56 let expected = new Array<string>(languageCodes.length); 57 for (let i: int = 0; i < expected.length; ++i) { 58 expected[i] = new string(""); 60 expected[EN] = String.fromCharCode(49, 44, 50, 51, 52, 46, 53); 61 expected[FR] = String.fromCharCode(49, 8239, 50, 51, 52, 44, 53); 62 expected[ES] = String.fromCharCode(49, 46, 50, 51, 52, 44, 53); 63 expected[GR] = expected[ES]; 64 expected[NO] = String.fromCharCode(49, 160, 50, 51, 52, 44, 53); 65 expected[IT] = expected[GR]; 66 expected[CH] = expected[EN]; [all …]
|
| D | IntlNumberFormatRangeInfTest.sts | 57 let expected = new Array<string>(languageCodes.length); 58 for (let i: int = 0; i < expected.length; ++i) { 59 expected[i] = new string(""); 61 expected[EN] = String.fromCharCode(49, 44, 50, 51, 52, 46, 53); 62 expected[FR] = String.fromCharCode(49, 8239, 50, 51, 52, 44, 53); 63 expected[ES] = String.fromCharCode(49, 46, 50, 51, 52, 44, 53); 64 expected[GR] = expected[ES]; 65 expected[NO] = String.fromCharCode(49, 160, 50, 51, 52, 44, 53); 66 expected[IT] = expected[GR]; 67 expected[CH] = expected[EN]; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/utils/ |
| D | test_check_test_regexp_result.j2 | 16 function checkTestResult(actual : RegExpExecArray | null, expected : RegExpExecArray | null) : int { 17 if (actual == null && expected == null) { 20 if (actual == null || expected == null) { 24 if (actual.isCorrect != expected.isCorrect) { 25 console.println("isCorrect field of actual is not equals to expected") 27 console.println("expected.isCorrect : " + expected.isCorrect) 31 if (actual.index != expected.index) { 32 console.println("index field of actual is not equals to expected") 34 console.println("expected.index : " + expected.index) 38 if (actual.result.length != expected.result.length) { [all …]
|
| D | test_verifier_lib.j2 | 17 function compareStringTrivial(actual : String, expected : String) : boolean { 18 if (actual == expected) return true; 24 function compareStringBuilderWithString(actual : StringBuilder, expected : String) : boolean { 26 return expected.equals(tmpString); 32 function comparePrimitiveValue(actual : {{.item.method_return_type}}, expected : {{.item.method_ret… 34 function comparePrimitiveValue(actual : {{.item.result_type}}, expected : {{.item.result_type}}) : … 36 if (actual == expected) return true; 62 function compareWrapperObjectValue(actual : {{.item.method_return_type}}, expected : {{.item.expect… 66 return compareFloatPointValue(actual2, expected); 68 if (actual2 == expected) return true; [all …]
|
| /arkcompiler/runtime_core/libpandafile/tests/ |
| D | file_items_test.cpp | 78 std::string expected; variable 81 expected = "annotation_item"; 84 expected = "catch_block_item"; 87 expected = "class_index_item"; 90 expected = "class_item"; 93 expected = "code_item"; 96 expected = "debug_info_item"; 99 expected = "end_item"; 102 expected = "field_index_item"; 105 expected = "field_item"; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/js_to_ets/indirect_call/ |
| D | indirect_value.sts | 18 const EXPECTED = 2; 21 assert(result == EXPECTED); 27 const EXPECTED = 2; 30 assert(result == EXPECTED); 36 const EXPECTED = 2; 39 assert(boundWithArg() as int == EXPECTED); 45 const EXPECTED = 2; 48 assert(boundWithoutArg(1) as int == EXPECTED); 55 const EXPECTED = ''.concat(ARG, ARG); 58 assert(result == EXPECTED); [all …]
|
| /arkcompiler/runtime_core/assembler/tests/ |
| D | lexer_test.cpp | 30 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 31 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST() 32 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "DEL_COMMA") << "DEL_COMMA expected"; in TEST() 33 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in TEST() 34 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 42 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 43 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST() 44 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 52 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 53 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "OPERATION") << "OPERATION expected"; in TEST() [all …]
|
| D | assembler_lexer_test.cpp | 41 EXPECT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; 42 EXPECT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; 43 EXPECT_EQ(TokenTypeWhat(tok.first[2].type), "DEL_COMMA") << "DEL_COMMA expected"; 44 EXPECT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; 45 EXPECT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; 59 EXPECT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; 60 EXPECT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; 61 EXPECT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; 75 EXPECT_EQ(TokenTypeWhat(tok.first[0].type), "ID") << "ID expected"; 76 EXPECT_EQ(TokenTypeWhat(tok.first[1].type), "OPERATION") << "OPERATION expected"; [all …]
|
| /arkcompiler/runtime_core/static_core/assembler/tests/ |
| D | lexer_test.cpp | 33 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 34 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST() 35 ASSERT_EQ(TokenTypeWhat(tok.first[2].type), "DEL_COMMA") << "DEL_COMMA expected"; in TEST() 36 ASSERT_EQ(TokenTypeWhat(tok.first[3].type), "ID") << "ID expected"; in TEST() 37 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 45 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 46 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "ID") << "ID expected"; in TEST() 47 ASSERT_EQ(tok.second.err, Error::ErrorType::ERR_NONE) << "ERR_NONE expected"; in TEST() 55 ASSERT_EQ(TokenTypeWhat(tok.first[0].type), "OPERATION") << "OPERATION expected"; in TEST() 56 ASSERT_EQ(TokenTypeWhat(tok.first[1].type), "OPERATION") << "OPERATION expected"; in TEST() [all …]
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | expected_test.cpp | 16 #include "utils/expected.h" 22 namespace panda::test::expected { namespace 26 static Expected<int, ErrorCode> helper(int v) in helper() 46 TEST(Expected, Unexpected) in TEST() argument 55 TEST(Expected, Ctor) in TEST() argument 58 auto e = Expected<int, ErrorCode>(v); in TEST() 63 auto e0 = Expected<int, ErrorCode>(); in TEST() 66 auto e1 = Expected<int, ErrorCode>(2); in TEST() 69 auto e2 = Expected<int, ErrorCode>(Unexpected(ErrorCode::First)); in TEST() 71 auto e3 = Expected<int, ErrorCode>(u); in TEST() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | RegExpMatchAllTest.sts | 46 function test(r: RegExp, str: String, expected: RegExpMatchArray[]) { 50 for (let i = 0; i < expected.length; ++i) { 51 failure += checkTestResult(v.value!, expected[i]); 58 function checkTestResult(actual: boolean, expected: boolean) : int { 59 if (actual != expected) return 1; 63 function checkTestResult(actual: int, expected: int) : int { 64 if (actual != expected) return 1; 70 function checkTestResult(actual : RegExpExecArray | null, expected : RegExpExecArray | null) : int { 71 if (actual == null && expected == null) { 74 if (actual == null || expected == null) { [all …]
|
| D | JsonParseTest.sts | 221 static assertEquals(expected: NullishType, actual: NullishType): void { 222 assert __runtimeSameValueZero(expected, actual) : `expected ${expected} but was ${actual}` 225 static assertSame(expected: NullishType, actual: NullishType): void { 226 … assert __runtimeIsSameReference(expected, actual) : `expected "${expected}" but was "${actual}"` 230 assert actual : "expected true but was false" 233 …static assertArrayEquals<T>(expected: T[] | undefined | null, actual: T[] | undefined | null): voi… 234 if (expected === null) { 235 assert actual === null : `expected 'null' but was [${actual}]` 236 } else if (expected === undefined) { 237 assert actual === undefined : `expected 'undefined' but was [${actual}]` [all …]
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/test/chapters_test/ |
| D | chapters_test.py | 55 expected: Set[str] = { 63 self.assertSetEqual(actual, expected) 72 expected: Set[str] = { 80 self.assertSetEqual(actual, expected) 89 expected: Set[str] = { 96 self.assertSetEqual(actual, expected) 105 expected: Set[str] = { 108 self.assertSetEqual(actual, expected) 117 expected: Set[str] = { 121 self.assertSetEqual(actual, expected) [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/annotation_tests/ |
| D | ambient_annotations_bad_type01.sts | 34 /* @@? 19:26 Error TypeError: The initial value does not match the expected value. */ 35 /* @@? 19:5 Error TypeError: Initializer for field 'authorName' does not match the expected definit… 36 /* @@? 20:25 Error TypeError: The initial value does not match the expected value. */ 37 /* @@? 20:5 Error TypeError: Initializer for field 'authorAge' does not match the expected definiti… 38 /* @@? 21:25 Error TypeError: The initial value does not match the expected value. */ 39 /* @@? 21:5 Error TypeError: Initializer for field 'testBool' does not match the expected definitio… 40 /* @@? 22:29 Error TypeError: The initial value does not match the expected value. */ 41 /* @@? 22:5 Error TypeError: Initializer for field 'favorColor' does not match the expected definit… 42 /* @@? 23:27 Error TypeError: The initial value does not match the expected value. */ 43 /* @@? 23:26 Error TypeError: The initial value does not match the expected value. */ [all …]
|
| /arkcompiler/runtime_core/static_core/libpandabase/tests/ |
| D | expected_test.cpp | 16 #include "utils/expected.h" 22 namespace ark::test::expected { namespace 28 static Expected<int, ErrorCode> Helper(int v) in Helper() 48 TEST(Expected, Unexpected) in TEST() argument 57 TEST(Expected, Ctor) in TEST() argument 60 auto e = Expected<int, ErrorCode>(v); in TEST() 65 auto e0 = Expected<int, ErrorCode>(); in TEST() 68 auto e1 = Expected<int, ErrorCode>(2U); in TEST() 71 auto e2 = Expected<int, ErrorCode>(Unexpected(ErrorCode::FIRST)); in TEST() 73 auto e3 = Expected<int, ErrorCode>(u); in TEST() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/escompat/ |
| D | list.copyWithin.yaml | 16 expected: [1, 2, 3, 4, 5], 21 expected: [1, 2, 3, 4, 5], 26 expected: [1, 2, 3, 4, 5], 31 expected: [1, 2, 3, 4, 5], 37 expected: [4, 5, 3, 4, 5], 42 expected: [1, 4, 5, 4, 5], 47 expected: [1, 3, 4, 5, 5], 52 expected: [1, 2, 3, 4, 5], 57 expected: [4, 2, 3, 4, 5], 62 expected: [1, 4, 3, 4, 5], [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/ |
| D | list.copyWithin.yaml | 16 expected: [1, 2, 3, 4, 5], 21 expected: [1, 2, 3, 4, 5], 26 expected: [1, 2, 3, 4, 5], 31 expected: [1, 2, 3, 4, 5], 37 expected: [4, 5, 3, 4, 5], 42 expected: [1, 4, 5, 4, 5], 47 expected: [1, 3, 4, 5, 5], 52 expected: [1, 2, 3, 4, 5], 57 expected: [4, 2, 3, 4, 5], 62 expected: [1, 4, 3, 4, 5], [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | unexpected_token_33.sts | 18 /* @@? 16:9 Error SyntaxError: Unexpected token, expected: '{'. */ 19 /* @@? 16:10 Error SyntaxError: Identifier expected, got ','. */ 20 /* @@? 16:12 Error SyntaxError: Field type annotation expected */ 21 /* @@? 16:14 Error SyntaxError: Field type annotation expected */ 22 /* @@? 16:14 Error SyntaxError: Identifier expected, got ''. */ 23 /* @@? 16:22 Error SyntaxError: Field type annotation expected */ 24 /* @@? 16:23 Error SyntaxError: Field type annotation expected */ 25 /* @@? 16:23 Error SyntaxError: Identifier expected, got '>'. */ 26 /* @@? 16:25 Error SyntaxError: Field type annotation expected */ 27 /* @@? 16:25 Error SyntaxError: Identifier expected, got '{'. */ [all …]
|
| D | InvalidTyped.sts | 33 /* @@? 16:21 Error SyntaxError: Identifier expected */ 34 /* @@? 16:21 Error SyntaxError: Unexpected token, expected: ','. */ 35 /* @@? 16:23 Error SyntaxError: Identifier expected */ 36 /* @@? 18:23 Error SyntaxError: Unexpected token, expected: ','. */ 37 /* @@? 18:25 Error SyntaxError: Identifier expected */ 38 /* @@? 20:21 Error SyntaxError: Identifier expected */ 40 /* @@? 24:21 Error SyntaxError: Unexpected token, expected: ','. */ 41 /* @@? 24:21 Error SyntaxError: Unexpected token, expected: '{'. */ 42 /* @@? 24:23 Error SyntaxError: Identifier expected, got '{'. */ 43 /* @@? 24:24 Error SyntaxError: Field type annotation expected */ [all …]
|
| D | MultipleClassErrors.sts | 32 /* @@? 17:5 Error SyntaxError: Identifier expected, got 'function'. */ 33 /* @@? 17:14 Error SyntaxError: Field type annotation expected */ 34 /* @@? 21:5 Error SyntaxError: Identifier expected, got 'let'. */ 35 /* @@? 21:9 Error SyntaxError: Field type annotation expected */ 36 /* @@? 22:5 Error SyntaxError: Identifier expected, got 'let'. */ 37 /* @@? 22:9 Error SyntaxError: Field type annotation expected */ 38 /* @@? 28:7 Error SyntaxError: Identifier expected, got 'number literal'. */ 39 /* @@? 30:7 Error SyntaxError: Identifier expected, got '{'. */ 40 /* @@? 30:8 Error SyntaxError: Unexpected token, expected: '{'. */
|
| /arkcompiler/runtime_core/static_core/plugins/ets/playground/backend/tests/ |
| D | test_runner.py | 47 expected=str(ark_build[1]), 50 FakeCommand(expected=str(ark_build[2]), 60 expected = {"compile": {"error": "", "exit_code": 0, "output": "executed"}, "disassembly": None} 62 expected["disassembly"] = { 68 assert res == expected 90 expected=str(ark_build[1]), 93 FakeCommand(expected=str(ark_build[3]), 97 FakeCommand(expected=str(ark_build[2]), 107 expected = { 119 expected["disassembly"] = { [all …]
|
| /arkcompiler/runtime_core/static_core/libpandafile/tests/ |
| D | bytecode_emitter_tests.cpp | 116 std::vector<uint8_t> expected; in TEST() local 118 expected << Opcode::RETURN_VOID; in TEST() 120 expected << Opcode::JMP_IMM8 << -numRet; in TEST() 121 ASSERT_EQ(expected, out); in TEST() 139 std::vector<uint8_t> expected; in TEST() local 140 expected << Opcode::JMP_IMM8 << numRet + globals::IMM_2; in TEST() 142 expected << Opcode::RETURN_VOID; in TEST() 144 ASSERT_EQ(expected, out); in TEST() 160 std::vector<uint8_t> expected; in TEST() local 162 expected << Opcode::RETURN_VOID; in TEST() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | trailing-lambda.sts | 38 assert x == 2: "expected: " + 2 + " actual: " + x; 44 assert x == 3: "expected: " + 3 + " actual: " + x; 50 assert x == 5: "expected: " + 5 + " actual: " + x; 54 assert x == 6: "expected: " + 6 + " actual: " + x; 55 assert b == y: "expected: " + y + " actual: " + b; 58 assert x == 7: "expected: " + 7 + " actual: " + x; 59 assert a == y: "expected: " + y + " actual: " + a; 81 assert num == 0: "expected: " + 0 + " actual: " + num; 103 assert A.n == 2: "expected: " + 2 + " actual: " + A.n; 108 assert A.n == 3: "expected: " + 3 + " actual: " + A.n; [all …]
|