| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | ArrayIteratorDone.ets | 30 let result = iterator.next(); 31 assertEQ(result.done, false, 'First result `done` flag for values() of Array<string>'); 32 assertEQ(result.value, "a", 'First result `value` for values() of Array<string>'); 33 result = iterator.next(); 34 assertEQ(result.done, true, 'Exhausted result `done` flag for values() of Array<string>'); 35 assertEQ(result.value, undefined, 'Exhausted result `value` for values() of Array<string>'); 37 result = iterator.next(); 38 …assertEQ(result.done, true, 'Exhausted result `done` flag after push for values() of Array<string>… 39 …assertEQ(result.value, undefined, 'Exhausted result `value` after push for values() of Array<strin… 46 let result = iterator.next(); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/05.compatibility_call_args/ |
| D | single_params.params.yaml | 18 - { val: 0b0 as byte, result: 0 } 19 - { val: Byte.MIN_VALUE, result: -128 } 20 - { val: Byte.MAX_VALUE, result: 127 } 25 - { val: 0b0 as byte, result: 0 } 26 - { val: Byte.MIN_VALUE, result: -128 } 27 - { val: Byte.MAX_VALUE, result: 127 } 32 - { val: 0b0 as byte, result: 0 as long } 33 - { val: Byte.MIN_VALUE, result: -128 as long } 34 - { val: Byte.MAX_VALUE, result: 127 as long } 39 - { val: 0b0 as byte, result: 0.0 as float } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/division/ |
| D | division_float.params.yaml | 16 - { left: 0.0, right: 0.0, result: Float.NaN } 17 - { left: 1.0, right: 0.0, result: Float.POSITIVE_INFINITY } 18 - { left: -1.0, right: -0.0, result: Float.POSITIVE_INFINITY } 19 - { left: 1.0, right: -0.0, result: Float.NEGATIVE_INFINITY } 20 - { left: -1.0, right: 0.0, result: Float.NEGATIVE_INFINITY } 21 - { left: 0.0, right: 1.0, result: 0.0 } 22 - { left: 0.0, right: -1.0, result: -0.0 } 23 - { left: Float.NaN, right: 0.0, result: Float.NaN } 24 - { left: Float.NaN, right: Float.NaN, result: Float.NaN } 25 - { left: Float.NaN, right: 1.0, result: Float.NaN } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/subtraction/ |
| D | subtraction_float.params.yaml | 16 - { left: 0.0, right: 0.0, result: 0.0 } 17 - { left: +0.0, right: +0.0, result: 0.0 } 18 - { left: -0.0, right: -0.0, result: 0.0 } 19 - { left: -0.0, right: +0.0, result: 0.0 } 20 - { left: 1.0, right: 0.0, result: 1.0 } 21 - { left: -1.0, right: 0.0, result: -1.0 } 22 - { left: 0.0, right: 1.0, result: -1.0 } 23 - { left: Float.NaN, right: 0.0, result: Float.NaN } 24 - { left: Float.NaN, right: 1.0, result: Float.NaN } 25 - { left: Float.NaN, right: Float.NaN, result: Float.NaN } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/multiplication/ |
| D | multiplication_float.params.yaml | 16 - { left: 0.0, right: 0.0, result: 0.0 } 17 - { left: +0.0, right: +0.0, result: 0.0 } 18 - { left: -0.0, right: -0.0, result: 0.0 } 19 - { left: 1.0, right: 0.0, result: 0.0 } 20 - { left: -1.0, right: 0.0, result: 0.0 } 21 - { left: Float.NaN, right: 0.0, result: Float.NaN } 22 - { left: Float.NaN, right: Float.NaN, result: Float.NaN } 23 - { left: Float.POSITIVE_INFINITY, right: 0.0, result: Float.NaN } 24 - { left: Float.NEGATIVE_INFINITY, right: 0.0, result: Float.NaN } 25 - { left: Float.POSITIVE_INFINITY, right: -1.0, result: Float.NEGATIVE_INFINITY } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/addition/ |
| D | addition_float.params.yaml | 16 - { left: 0.0, right: 0.0, result: 0.0 } 17 - { left: +0.0, right: +0.0, result: 0.0 } 18 - { left: -0.0, right: -0.0, result: 0.0 } 19 - { left: 1.0, right: 0.0, result: 1.0 } 20 - { left: -1.0, right: 0.0, result: -1.0 } 21 - { left: Float.NaN, right: 0.0, result: Float.NaN } 22 - { left: Float.NaN, right: Float.NaN, result: Float.NaN } 23 - { left: Float.POSITIVE_INFINITY, right: 0.0, result: Float.POSITIVE_INFINITY } 24 - { left: Float.POSITIVE_INFINITY, right: -1.0, result: Float.POSITIVE_INFINITY } 25 - { left: Float.POSITIVE_INFINITY, right: Float.POSITIVE_INFINITY, result: Float.POSITIVE_INFINITY } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/less_than/ |
| D | less_than_float.params.yaml | 16 - { left: 0.0, right: 0.0, result: "false" } 17 - { left: 1.0, right: 0.0, result: "false" } 18 - { left: 0.0, right: 1.0, result: "true" } 19 - { left: 1.0, right: 1.0, result: "false" } 20 - { left: -1.0, right: 0.0, result: "true" } 21 - { left: -1.0, right: 1.0, result: "true" } 22 - { left: -1.0, right: -1.0, result: "false" } 23 - { left: Float.MIN_VALUE, right: 0.0, result: "false" } 24 - { left: Float.MIN_VALUE, right: 3.1415927, result: "true" } 25 - { left: Float.MIN_VALUE, right: -Float.MIN_VALUE, result: "false" } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/not_equal/ |
| D | not_equal_float.params.yaml | 16 - { left: 0.0, right: 0.0, result: "false" } 17 - { left: 1.0, right: 0.0, result: "true" } 18 - { left: 0.0, right: 1.0, result: "true" } 19 - { left: 1.0, right: 1.0, result: "false" } 20 - { left: -1.0, right: 0.0, result: "true" } 21 - { left: -1.0, right: 1.0, result: "true" } 22 - { left: -1.0, right: -1.0, result: "false" } 23 - { left: Float.MIN_VALUE, right: 0.0, result: "true" } 24 - { left: Float.MIN_VALUE, right: 3.1415927, result: "true" } 25 - { left: Float.MIN_VALUE, right: -Float.MIN_VALUE, result: "true" } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/less_or_equal/ |
| D | less_or_equal_float.params.yaml | 16 - { left: 0.0, right: 0.0, result: "true" } 17 - { left: 1.0, right: 0.0, result: "false" } 18 - { left: 0.0, right: 1.0, result: "true" } 19 - { left: 1.0, right: 1.0, result: "true" } 20 - { left: -1.0, right: 0.0, result: "true" } 21 - { left: -1.0, right: 1.0, result: "true" } 22 - { left: -1.0, right: -1.0, result: "true" } 23 - { left: Float.MIN_VALUE, right: 0.0, result: "false" } 24 - { left: Float.MIN_VALUE, right: 3.1415927, result: "true" } 25 - { left: Float.MIN_VALUE, right: -Float.MIN_VALUE, result: "false" } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/greater_or_equal/ |
| D | greater_or_equal_float.params.yaml | 16 - { left: 0.0, right: 0.0, result: "true" } 17 - { left: 1.0, right: 0.0, result: "true" } 18 - { left: 0.0, right: 1.0, result: "false" } 19 - { left: 1.0, right: 1.0, result: "true" } 20 - { left: -1.0, right: 0.0, result: "false" } 21 - { left: -1.0, right: 1.0, result: "false" } 22 - { left: -1.0, right: -1.0, result: "true" } 23 - { left: Float.MIN_VALUE, right: 0.0, result: "true" } 24 - { left: Float.MIN_VALUE, right: 3.1415927, result: "false" } 25 - { left: Float.MIN_VALUE, right: -Float.MIN_VALUE, result: "true" } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/equal/ |
| D | equal_float.params.yaml | 16 - { left: 0.0, right: 0.0, result: "true" } 17 - { left: 1.0, right: 0.0, result: "false" } 18 - { left: 0.0, right: 1.0, result: "false" } 19 - { left: 1.0, right: 1.0, result: "true" } 20 - { left: -1.0, right: 0.0, result: "false" } 21 - { left: -1.0, right: 1.0, result: "false" } 22 - { left: -1.0, right: -1.0, result: "true" } 23 - { left: Float.MIN_VALUE, right: 0.0, result: "false" } 24 - { left: Float.MIN_VALUE, right: 3.1415927, result: "false" } 25 - { left: Float.MIN_VALUE, right: -Float.MIN_VALUE, result: "false" } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/greater_than/ |
| D | greater_than_float.params.yaml | 16 - { left: 0.0, right: 0.0, result: "false" } 17 - { left: 1.0, right: 0.0, result: "true" } 18 - { left: 0.0, right: 1.0, result: "false" } 19 - { left: 1.0, right: 1.0, result: "false" } 20 - { left: -1.0, right: 0.0, result: "false" } 21 - { left: -1.0, right: 1.0, result: "false" } 22 - { left: -1.0, right: -1.0, result: "false" } 23 - { left: Float.MIN_VALUE, right: 0.0, result: "true" } 24 - { left: Float.MIN_VALUE, right: 3.1415927, result: "false" } 25 - { left: Float.MIN_VALUE, right: -Float.MIN_VALUE, result: "true" } [all …]
|
| /arkcompiler/runtime_core/libabckit/tests/stress/ |
| D | fail_list_sts_with_runtime.json | 2 "/tmp/abckit_test_ets/algorithms/ChecksumsTest.sts": "ETS Test result changed. Was 0, now 1", 3 "/tmp/abckit_test_ets/algorithms/SortingTest.sts": "ETS Test result changed. Was 0, now 1", 4 "/tmp/abckit_test_ets/algorithms/TreeSanityTest.sts": "ETS Test result changed. Was 0, now 1", 5 "/tmp/abckit_test_ets/escompat/ArrayGet.sts": "ETS Test result changed. Was 0, now 1", 6 "/tmp/abckit_test_ets/escompat/ArrayTest1.sts": "ETS Test result changed. Was 0, now 1", 7 "/tmp/abckit_test_ets/escompat/ArrayTest2.sts": "ETS Test result changed. Was 0, now 1", 8 "/tmp/abckit_test_ets/escompat/ArrayTest3.sts": "ETS Test result changed. Was 0, now 1", 9 "/tmp/abckit_test_ets/escompat/ArrayTest4.sts": "ETS Test result changed. Was 0, now 1", 10 "/tmp/abckit_test_ets/escompat/ArrayTest6.sts": "ETS Test result changed. Was 0, now 1", 11 "/tmp/abckit_test_ets/escompat/IteratorArrayTest.sts": "ETS Test result changed. Was 0, now 1", [all …]
|
| /arkcompiler/runtime_core/panda_guard/tests/unittest/ |
| D | string_util_test.cpp | 34 auto result = StringUtil::Split(str, delimiter); variable 35 EXPECT_EQ(result.size(), 1); 36 EXPECT_EQ(result[0], "a"); 39 result = StringUtil::Split(str, delimiter); 40 EXPECT_EQ(result.size(), 1); 41 EXPECT_EQ(result[0], "error"); 54 auto result = StringUtil::StrictSplit(str, delimiter); variable 55 EXPECT_EQ(result.size(), 4); 56 EXPECT_EQ(result[0], ""); 57 EXPECT_EQ(result[1], ""); [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/tests/ |
| D | iterators_test.cpp | 26 void CheckInstForwardIterator(BasicBlock *block, std::vector<Inst *> &result) in CheckInstForwardIterator() argument 28 result.clear(); in CheckInstForwardIterator() 30 result.push_back(inst); in CheckInstForwardIterator() 32 EXPECT_EQ(result, expectPhis_); in CheckInstForwardIterator() 34 result.clear(); in CheckInstForwardIterator() 36 result.push_back(inst); in CheckInstForwardIterator() 38 EXPECT_EQ(result, expectInsts_); in CheckInstForwardIterator() 40 result.clear(); in CheckInstForwardIterator() 42 result.push_back(inst); in CheckInstForwardIterator() 44 EXPECT_EQ(result, expectAll_); in CheckInstForwardIterator() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/24.relational_expressions/02.string_comparison_operators/ |
| D | string_comparison.params.yaml | 16 - {left: '', right: '', op: "<", result: "false"} 17 - {left: ' ', right: '', op: "<", result: "false"} 18 - {left: '', right: '\n', op: "<", result: "true"} 19 - {left: '\r', right: '', op: "<", result: "false"} 20 - {left: "'aa", right: "'aa", op: "<", result: "false"} 21 - {left: 'aa', right: 'aaa', op: "<", result: "true"} 22 - {left: 'ac', right: 'dc', op: "<", result: "true"} 23 - {left: 'AAAAAB', right: 'AAAAAAA', op: "<", result: "false"} 24 - {left: 'AAAAAA', right: 'aaaaaa', op: "<", result: "true"} 25 - {left: '~', right: '~A', op: "<", result: "true"} [all …]
|
| /arkcompiler/ets_runtime/common_components/base/tests/ |
| D | utf_helper_test.cpp | 29 uint32_t result = utf_helper::DecodeUTF16(utf16, len, &index, false); in HWTEST_F_L0() local 30 EXPECT_EQ(result, 0xD7FF); in HWTEST_F_L0() 33 result = utf_helper::DecodeUTF16(utf16In, len, &index, false); in HWTEST_F_L0() 34 EXPECT_EQ(result, 0xDC00); in HWTEST_F_L0() 37 result = utf_helper::DecodeUTF16(utf16In1, len, &index, false); in HWTEST_F_L0() 38 EXPECT_EQ(result, 0xD800); in HWTEST_F_L0() 42 result = utf_helper::DecodeUTF16(utf16In2, len, &index, false); in HWTEST_F_L0() 43 EXPECT_EQ(result, 0xD7FF); in HWTEST_F_L0() 46 result = utf_helper::DecodeUTF16(utf16In2, len, &index, false); in HWTEST_F_L0() 47 EXPECT_EQ(result, 0xD7FF); in HWTEST_F_L0() [all …]
|
| /arkcompiler/toolchain/tooling/dynamic/base/ |
| D | pt_returns.cpp | 21 std::unique_ptr<PtJson> result = PtJson::CreateObject(); in ToJson() local 23 result->Add("debuggerId", std::to_string(debuggerId_).c_str()); in ToJson() 29 result->Add("protocols", array); in ToJson() 31 return result; in ToJson() 36 std::unique_ptr<PtJson> result = PtJson::CreateObject(); in ToJson() local 42 result->Add("protocols", array); in ToJson() 44 return result; in ToJson() 49 std::unique_ptr<PtJson> result = PtJson::CreateObject(); in ToJson() local 51 result->Add("breakpointId", id_.c_str()); in ToJson() 59 result->Add("locations", array); in ToJson() [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/arraySome/ |
| D | arraySome.js | 19 const result = [1, 2, 3].some((x, i, arr) => { variable 23 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: true 28 const result = [1, 2, 3].some((x, i, arr) => { variable 32 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: false 37 const result = [].some((x, i, arr) => { variable 41 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: false 46 const result = [false, 0, ''].some((x, i, arr) => { variable 50 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: false 55 const result = [1, 2, 3].some((x, i, arr) => { variable 59 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: true [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/01.numerical_equality_operators/ |
| D | numeric_equality.params.yaml | 16 - {left: "5", right: "5", op: "==", result: "true"} 17 - {left: "10", right: "5", op: "!=", result: "true"} 18 - {left: "5", right: "5", op: "!=", result: "false"} 19 - {left: "10", right: "5", op: "==", result: "false"} 20 - {left: "1", right: "1.0", op: "==", result: "true"} 21 - {left: "0", right: "0.5", op: "!=", result: "true"} 22 - {left: "0", right: "-0", op: "==", result: "true"} 24 - {left: "new Int(5)", right: "new Int(5)", op: "==", result: "true"} 25 - {left: "new Long(10)", right: "new Long(5)", op: "!=", result: "true"} 26 - {left: "new Short(5 as short)", right: "new Short(5 as short)", op: "!=", result: "false"} [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/22.additive_expressions/02.additive_operators_for_numeric_types/ |
| D | int.params.yaml | 16 - {x: 0, y: -0, type: "byte", result: 0} 17 - {x: -0, y: 0, type: "byte", result: 0} 18 - {x: -0, y: -0, type: "byte", result: -0} 19 - {x: 0, y: 0, type: "byte", result: 0} 20 - {x: 0, y: 1, type: "byte", result: 1} 21 - {x: 1, y: 0, type: "byte", result: 1} 22 - {x: 1, y: -1, type: "byte", result: 0} 24 - {x: 0, y: -0, type: "short", result: 0} 25 - {x: -0, y: 0, type: "short", result: 0} 26 - {x: -0, y: -0, type: "short", result: -0} [all …]
|
| /arkcompiler/runtime_core/compiler/tests/ |
| D | iterators_test.cpp | 33 std::vector<Inst *> result; in Check() local 35 result.push_back(inst); in Check() 37 EXPECT_EQ(result, expect_phis_); in Check() 39 result.clear(); in Check() 41 result.push_back(inst); in Check() 43 EXPECT_EQ(result, expect_insts_); in Check() 45 result.clear(); in Check() 47 result.push_back(inst); in Check() 49 EXPECT_EQ(result, expect_all_); in Check() 52 result.clear(); in Check() [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/arrayfindindex/ |
| D | arrayfindindex.js | 59 const result = [1, 2, 3, 4].findIndex((x, i, arr) => { variable 63 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 2 68 const result = [1, 2, 3, 4].findIndex((x, i, arr) => { variable 72 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: -1 77 const result = [].findIndex((x, i, arr) => { variable 81 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: -1 86 const result = [false, 0, ''].findIndex((x, i, arr) => { variable 90 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 0 95 const result = [1, 2, 3, 4].findIndex((x, i, arr) => { variable 99 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 2 [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/namespace_ops/ |
| D | namespace_find_namespace_test.cpp | 28 ani_namespace result {}; in TEST_F() local 29 ASSERT_EQ(env_->Namespace_FindNamespace(ns, "LA;", &result), ANI_OK); in TEST_F() 30 ASSERT_NE(result, nullptr); in TEST_F() 32 ASSERT_EQ(env_->Namespace_FindNamespace(result, "LB;", &result), ANI_OK); in TEST_F() 33 ASSERT_NE(result, nullptr); in TEST_F() 42 ani_namespace result {}; in TEST_F() local 45 ASSERT_EQ(env_->Namespace_FindNamespace(ns, "LA;", &result), ANI_OK); in TEST_F() 46 ASSERT_NE(result, nullptr); in TEST_F() 48 ASSERT_EQ(env_->Namespace_FindNamespace(result, "LB;", &result), ANI_OK); in TEST_F() 49 ASSERT_NE(result, nullptr); in TEST_F() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/unit/lsp/ |
| D | get_diagnostics.cpp | 35 DiagnosticReferences result = lspApi->getSemanticDiagnostics(ctx); in TEST_F() local 37 ASSERT_EQ(result.diagnostic.size(), 0); in TEST_F() 50 DiagnosticReferences result = lspApi->getSemanticDiagnostics(ctx); in TEST_F() local 53 ASSERT_EQ(result.diagnostic.size(), expectedErrorCount); in TEST_F() 59 ASSERT_EQ(result.diagnostic[thirdIndex].range_.start.line_, expectedFirstStartLine); in TEST_F() 60 ASSERT_EQ(result.diagnostic[thirdIndex].range_.start.character_, expectedFirstStartCharacter); in TEST_F() 61 ASSERT_EQ(result.diagnostic[thirdIndex].range_.end.line_, expectedFirstEndLine); in TEST_F() 62 ASSERT_EQ(result.diagnostic[thirdIndex].range_.end.character_, expectedFirstEndCharacter); in TEST_F() 63 ASSERT_EQ(result.diagnostic[thirdIndex].severity_, DiagnosticSeverity::Error); in TEST_F() 64 ASSERT_NE(std::get<int>(result.diagnostic[thirdIndex].code_), 0); in TEST_F() [all …]
|