Home
last modified time | relevance | path

Searched full:expected (Results 1 – 25 of 2079) sorted by relevance

12345678910>>...84

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/
DIntlNumberFormatRangeNegPosTest.ets54 let expected = new Array<string>(languageCodes.length);
55 for (let i: int = 0; i < expected.length; ++i) {
56 expected[i] = new string("");
58 expected[EN] = String.fromCharCode(49, 44, 50, 51, 52, 46, 53);
59 expected[FR] = String.fromCharCode(49, 8239, 50, 51, 52, 44, 53);
60 expected[ES] = String.fromCharCode(49, 46, 50, 51, 52, 44, 53);
61 expected[GR] = expected[ES];
62 expected[NO] = String.fromCharCode(49, 160, 50, 51, 52, 44, 53);
63 expected[IT] = expected[GR];
64 expected[CH] = expected[EN];
[all …]
DIntlNumberFormatRangeNegPosTest2.ets54 let expected = new Array<string>(languageCodes.length);
55 for (let i: int = 0; i < expected.length; ++i) {
56 expected[i] = new string("");
58 expected[EN] = String.fromCharCode(49, 44, 50, 51, 52, 46, 53);
59 expected[FR] = String.fromCharCode(49, 8239, 50, 51, 52, 44, 53);
60 expected[ES] = String.fromCharCode(49, 46, 50, 51, 52, 44, 53);
61 expected[GR] = expected[ES];
62 expected[NO] = String.fromCharCode(49, 160, 50, 51, 52, 44, 53);
63 expected[IT] = expected[GR];
64 expected[CH] = expected[EN];
[all …]
DIntlNumberFormatRangePosNegTest.ets54 let expected = new Array<string>(languageCodes.length);
55 for (let i: int = 0; i < expected.length; ++i) {
56 expected[i] = new string("");
58 expected[EN] = String.fromCharCode(49, 44, 50, 51, 52, 46, 53);
59 expected[FR] = String.fromCharCode(49, 8239, 50, 51, 52, 44, 53);
60 expected[ES] = String.fromCharCode(49, 46, 50, 51, 52, 44, 53);
61 expected[GR] = expected[ES];
62 expected[NO] = String.fromCharCode(49, 160, 50, 51, 52, 44, 53);
63 expected[IT] = expected[GR];
64 expected[CH] = expected[EN];
[all …]
DIntlNumberFormatRangePosNegTest2.ets54 let expected = new Array<string>(languageCodes.length);
55 for (let i: int = 0; i < expected.length; ++i) {
56 expected[i] = new string("");
58 expected[EN] = String.fromCharCode(49, 44, 50, 51, 52, 46, 53);
59 expected[FR] = String.fromCharCode(49, 8239, 50, 51, 52, 44, 53);
60 expected[ES] = String.fromCharCode(49, 46, 50, 51, 52, 44, 53);
61 expected[GR] = expected[ES];
62 expected[NO] = String.fromCharCode(49, 160, 50, 51, 52, 44, 53);
63 expected[IT] = expected[GR];
64 expected[CH] = expected[EN];
[all …]
DIntlNumberFormatTest2.ets62 const expected = exp[j][i];
63 if (CheckFormatNumber(locale, funcName, values[j], expected) == fail) {
81 const expected = exp[j][i];
82 if (CheckFormatUnion(locale, funcName, values[j], expected) == fail) {
92 let expected = new Array<string>(languageCodes.length);
93 for (let i: int = 0; i < expected.length; ++i) {
94 expected[i] = new string("");
96 expected[EN] = String.fromCharCode(49, 44, 50, 51, 52, 46, 53);
97 expected[FR] = String.fromCharCode(49, 8239, 50, 51, 52, 44, 53);
98 expected[ES] = String.fromCharCode(49, 46, 50, 51, 52, 44, 53);
[all …]
DIntlNumberFormatRangeInfTest.ets57 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 …]
DIntlRelativeTimeFormatTest.ets26 …CP47LocaleIdentifier, value: number, unit: Intl.RelativeTimeFormatUnit, expected: string, options?…
29 assertEQ(result, expected)
41 function runFormatToPartsTest(locale: string, values: FixedArray<number>, unit: string, expected: F…
46 arktest.assertEQ(result[0].value, expected[j]);
55 let expected: FixedArray<string> = ['现在', '1秒钟后', '100秒钟后', '1秒钟前', '100秒钟前'];
56 runFormatToPartsTest('zh', values, units[i], expected, options);
58expected = ['сейчас', 'через 1 секунду', 'через 100 секунд', '1 секунду назад', '100 секунд назад'…
59 runFormatToPartsTest('ru', values, units[i], expected, options);
61 expected = ['now', 'in 1 second', 'in 100 seconds', '1 second ago', '100 seconds ago'];
62 runFormatToPartsTest('en', values, units[i], expected, options);
[all …]
DIntlNumberFormatTest.ets59 const expected = exp[j][i];
60 if (CheckFormatUnion(locale, funcName, values[j], expected) == fail) {
88 let expected = new Array<string>(languageCodes.length);
89 for (let i: int = 0; i < expected.length; ++i) {
90 expected[i] = new string("");
92expected[EN] = String.fromCharCode(49, 50, 51, 44, 52, 53, 54, 44, 55, 56, 57, 44, 48, 48, 48, 44,…
93expected[FR] = String.fromCharCode(49, 50, 51, 8239, 52, 53, 54, 8239, 55, 56, 57, 8239, 48, 48, 4…
94expected[ES] = String.fromCharCode(49, 50, 51, 46, 52, 53, 54, 46, 55, 56, 57, 46, 48, 48, 48, 46,…
95 expected[GR] = expected[ES];
96expected[NO] = String.fromCharCode(49, 50, 51, 160, 52, 53, 54, 160, 55, 56, 57, 160, 48, 48, 48, …
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/33.constant_expression/check_array/
Dconstant_calculation.params.yaml15 - { type: byte, value: 26, sign: '*', expected: 260 }
16 - { type: byte, value: 26, sign: '/', expected: 2 }
17 - { type: byte, value: 26, sign: '%', expected: 6 }
18 - { type: byte, value: 26, sign: '+', expected: 36 }
19 - { type: byte, value: 26, sign: '-', expected: 16 }
21 - { type: short, value: 26, sign: '*', expected: 260 }
22 - { type: short, value: 260, sign: '/', expected: 26 }
23 - { type: short, value: 260, sign: '%', expected: 0 }
24 - { type: short, value: 260, sign: '+', expected: 270 }
25 - { type: short, value: 260, sign: '-', expected: 250 }
[all …]
Dconstant_bitwise_expression.params.yaml15 - { 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 …]
Dconstant_shift.params.yaml15 - { type: byte, value: 10, sign: '<<', expected: 80 }
16 - { type: byte, value: 10, sign: '>>', expected: 1 }
17 - { type: byte, value: 10, sign: '>>>', expected: 1 }
19 - { type: short, value: 20, sign: '<<', expected: 160 }
20 - { type: short, value: 20, sign: '>>', expected: 2 }
21 - { type: short, value: 20, sign: '>>>', expected: 2 }
23 - { type: char, value: c'p', sign: '<<', expected: 896 }
24 - { type: char, value: c'p', sign: '>>', expected: 14 }
25 - { type: char, value: c'p', sign: '>>>', expected: 14 }
27 - { type: int, value: 38, sign: '<<', expected: 304 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/33.constant_expression/check_enum/
Dconstant_calculation.params.yaml15 - { type: byte, value: 26, sign: '*', expected: 260 }
16 - { type: byte, value: 26, sign: '/', expected: 2 }
17 - { type: byte, value: 26, sign: '%', expected: 6 }
18 - { type: byte, value: 26, sign: '+', expected: 36 }
19 - { type: byte, value: 26, sign: '-', expected: 16 }
21 - { type: short, value: 260, sign: '*', expected: 2600 }
22 - { type: short, value: 260, sign: '/', expected: 26 }
23 - { type: short, value: 260, sign: '%', expected: 0 }
24 - { type: short, value: 260, sign: '+', expected: 270 }
25 - { type: short, value: 260, sign: '-', expected: 250 }
[all …]
Dconstant_shift.params.yaml15 - { type: byte, value: 3, sign: '<<', expected: 24 }
16 - { type: byte, value: 26, sign: '>>', expected: 3 }
17 - { type: byte, value: 26, sign: '>>>', expected: 3 }
18 - { type: byte, value: -3, sign: '<<', expected: -24 }
19 - { type: byte, value: -26, sign: '>>', expected: -4 }
20 - { type: byte, value: -26, sign: '>>>', expected: 536870908 }
22 - { type: short, value: 8, sign: '<<', expected: 64 }
23 - { type: short, value: 260, sign: '>>', expected: 32 }
24 - { type: short, value: 260, sign: '>>>', expected: 32 }
25 - { type: short, value: -8, sign: '<<', expected: -64 }
[all …]
Dconstant_bitwise_expression.params.yaml15 - { 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/ets_frontend/ets2panda/test/unit/lsp/
Dquick_info_test_1.cpp40 std::vector<SymbolDisplayPart> expected; in TEST_F() local
41 expected.emplace_back("enum", "keyword"); in TEST_F()
42 expected.emplace_back(" ", "space"); in TEST_F()
43 expected.emplace_back("MyEnum", "enumName"); in TEST_F()
44 ASSERT_EQ(expected, display); in TEST_F()
65 std::vector<SymbolDisplayPart> expected; in TEST_F() local
69 expected.push_back(keyword1); in TEST_F()
70 expected.push_back(keyword2); in TEST_F()
71 expected.push_back(keyword3); in TEST_F()
72 ASSERT_EQ(expected, display); in TEST_F()
[all …]
Dget_completions_entry_details.cpp49 std::vector<SymbolDisplayPart> expected; in TEST_F() local
50 expected.emplace_back("enum", "keyword"); in TEST_F()
51 expected.emplace_back(" ", "space"); in TEST_F()
52 expected.emplace_back("MyStrings", "className"); in TEST_F()
54 …CompletionEntryDetails = CompletionEntryDetails(entryName, kind, kindModifiers, expected, document, in TEST_F()
80 std::vector<SymbolDisplayPart> expected; in TEST_F() local
81 expected.emplace_back("class", "keyword"); in TEST_F()
82 expected.emplace_back(" ", "space"); in TEST_F()
83 expected.emplace_back("MyClass", "className"); in TEST_F()
85 …CompletionEntryDetails = CompletionEntryDetails(entryName, kind, kindModifiers, expected, document, in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/scripts/sdk/
Dtest_sdk23 echo "build-sdk/sdk/" > "$EXPECTED"
24 echo "build-sdk/sdk/package.json" >> "$EXPECTED"
27 cat "$SCRIPT_DIR"/test/test_file_expected_list_ohos_arm32.txt >> "$EXPECTED"
31 cat "$SCRIPT_DIR"/test/test_file_expected_list_ohos_arm64.txt >> "$EXPECTED"
33 cat "$SCRIPT_DIR"/test/test_file_expected_list_ohos_arm64_withoutLLVM.txt >> "$EXPECTED"
37 cat "$SCRIPT_DIR"/test/test_file_expected_list_arm64.txt >> "$EXPECTED"
41 cat "$SCRIPT_DIR"/test/test_file_expected_list_linux.txt >> "$EXPECTED"
43 cat "$SCRIPT_DIR"/test/test_file_expected_list_linux_withoutLLVM.txt >> "$EXPECTED"
47 cat "$SCRIPT_DIR"/test/test_file_expected_list_windows.txt >> "$EXPECTED"
50 cat "$SCRIPT_DIR"/test/test_file_expected_list_ts_linter.txt >> "$EXPECTED"
[all …]
/arkcompiler/runtime_core/static_core/libpandafile/tests/
Dfile_items_test.cpp59 std::string expected; in TEST() local
62 expected = "annotation_item"; in TEST()
65 expected = "catch_block_item"; in TEST()
68 expected = "class_index_item"; in TEST()
71 expected = "class_item"; in TEST()
74 expected = "code_item"; in TEST()
77 expected = "debug_info_item"; in TEST()
80 expected = "end_item"; in TEST()
83 expected = "field_index_item"; in TEST()
86 expected = "field_item"; in TEST()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/utils/
Dtest_check_test_regexp_result.j216 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 …]
/arkcompiler/runtime_core/libpandafile/tests/
Dfile_items_test.cpp78 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/ets_frontend/ets2panda/linter/src/testRunner/
DLintTest.ts68 // Read file with expected test result.
87 // Read file with expected test result.
91 let expected = LintTest.readLintResultFile(this.testDir, testResultFileName);
99 expected = expected.filter((x) => {
103 if (!expected || expected.length !== actual.length) {
104 const expectedResultCount = expected ? expected.length : 0; constant
105 diff = `Expected count: ${expectedResultCount} vs actual count: ${actual.length}`;
107 diff = LintTest.expectedAndActualMatch(expected, actual);
111 Logger.info(`${TAB}Lint test failed. Expected and actual results differ:\n${diff}`);
116 Logger.info(`${TAB}Failed to compare expected and actual results. ` + diff);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/js_to_ets/indirect_call/
Dindirect_value.ets18 const EXPECTED = 2;
21 assertTrue(result == EXPECTED);
27 const EXPECTED = 2;
30 assertTrue(result == EXPECTED);
36 const EXPECTED = 2;
39 assertTrue(boundWithArg() as int == EXPECTED);
45 const EXPECTED = 2;
48 assertTrue(boundWithoutArg(1) as int == EXPECTED);
55 const EXPECTED = ''.concat(ARG, ARG);
58 assertTrue(result == EXPECTED);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/arkts/@arkts/math/Decimal/
DsumTests.ets18 let expected: Decimal;
32 expected = new Decimal(0);
33 arktest.assertEQ(Decimal.sum('0').valueOf(), expected.valueOf());
34 arktest.assertEQ(Decimal.sum('0', new Decimal(0)).valueOf(), expected.valueOf());
38 expected = new Decimal(10);
39 arktest.assertEQ(Decimal.sum('10').valueOf(), expected.valueOf());
40 arktest.assertEQ(Decimal.sum('0', new Decimal('10')).valueOf(), expected.valueOf());
41 arktest.assertEQ(Decimal.sum(10, 0).valueOf(), expected.valueOf());
42 arktest.assertEQ(Decimal.sum(0, 0, 0, 0, 0, 0, 10).valueOf(), expected.valueOf());
43 arktest.assertEQ(Decimal.sum(11, -1).valueOf(), expected.valueOf());
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/01.type_parameters/01.type_parameter_constraint/generic_methods/
Dgeneric_method_with_body_constraint.params.yaml25 expected: a
30 expected: a
34 expected: '"a"'
38 expected: 1 as byte
42 expected: 1 as short
46 expected: 1 as int
50 expected: 1 as long
54 expected: 1.1 as float
58 expected: 1.2 as double
62 expected: 1.3 as number
[all …]
/arkcompiler/runtime_core/assembler/tests/
Dlexer_test.cpp30 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 …]

12345678910>>...84