Home
last modified time | relevance | path

Searched refs:actual (Results 1 - 15 of 15) sorted by relevance

/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/test/chapters_test/
H A Dchapters_test.py49 actual = ChapterTest.chapters.filter_by_chapter(
63 self.assertSetEqual(actual, expected)
66 actual = ChapterTest.chapters.filter_by_chapter(
80 self.assertSetEqual(actual, expected)
83 actual = ChapterTest.chapters.filter_by_chapter(
96 self.assertSetEqual(actual, expected)
99 actual = ChapterTest.chapters.filter_by_chapter(
108 self.assertSetEqual(actual, expected)
111 actual = ChapterTest.chapters.filter_by_chapter(
121 self.assertSetEqual(actual, expecte
[all...]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/test/multiple_config_test/
H A Dmultiple_config_test.py50 actual: Optional[Dict[str, Any]] = yaml.document()
70 self.assertIsNotNone(actual)
71 if actual:
72 self.compare_dicts(actual, expected)
83 actual: Optional[Dict[str, Any]] = yaml.document()
107 self.assertIsNotNone(actual)
108 if actual:
109 self.compare_dicts(actual, expected)
120 actual: Optional[Dict[str, Any]] = yaml.document()
140 self.assertIsNotNone(actual)
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/promise/
H A Dreturn_promise_to_js_test.js18 function equal(actual, expected) {
19 // try to convert expected to actual's type
20 if (typeof actual === 'boolean') {
21 return actual === Boolean(expected);
22 } else if (typeof actual === 'number') {
24 return Math.abs(actual - Number(expected)) < eps;
27 return String(actual) === String(expected);
/arkcompiler/ets_frontend/arkguard/scripts/
H A Dexecute_result_statistics.js100 const compareExpected = function(filePath, actual, expectation) {
101 if (actual.replace(/(\n|\r\n)/g, '') === expectation.replace(/(\n|\r\n)/g, '')) {
106 const differences = diff.diffLines(actual, expectation);
115 let actual = fs.readFileSync(filePath).toString();
117 compareExpected(filePath, actual, expectation);
121 let actual = fs.readFileSync(resultCachePath).toString();
123 compareExpected(filePath, actual, expectation);
127 let actual = fs.readFileSync(resultUnobfuscationPath).toString();
129 compareExpected(filePath, actual, expectation);
H A Dgrammar_test.py405 self, file_path, actual, expectation, actual_path, expectation_file
408 if actual.strip() == expectation.strip():
413 diff = difflib.ndiff(actual.splitlines(), expectation.splitlines())
414 logging.info("compare file, actual path:")
439 actual = actual_file.read()
442 file_path, actual, expectation, file_path, expectation_file
449 actual = actual_file.read()
453 actual,
465 actual = actual_file.read()
469 actual,
[all...]
/arkcompiler/ets_runtime/test/moduletest/jsonstringifier/
H A Djsonstringifier.js149 var actual = [];
154 actual.push({ holder: this, key, value });
155 if (actual.length === 1) return replaced;
177 print(JSON.stringify(expect) == JSON.stringify(actual));
178 print(actual[0].holder[""] == test_obj);
181 var actual = [];
195 actual.push({ holder: this, key, value });
196 if (actual.length === 1) return replaced;
229 print(JSON.stringify(expect) == JSON.stringify(actual));
230 print(actual[
[all...]
/arkcompiler/ets_runtime/test/moduletest/objectcloneproperties/
H A Dobjectcloneproperties.js36 var actual = arr.flatMap(fn); variable
45 actual = [].flatMap.call(arrLike, fn);
46 print(actual)
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/reports/
H A Dreport.py104 expected, actual = self.__make_output_diff_html(self.test.expected, actual_report.output)
105 test_expected, test_actual = "\n".join(expected), "\n".join(actual)
135 def __make_output_diff_html(self, expected: str, actual: str) -> Tuple[List[str], List[str]]:
137 actual_list = convert_to_array(actual)
165 def __get_md_good_line(expected: str, actual: str) -> str:
166 return f"| {expected} | {actual} |"
169 def __get_md_failed_line(expected: str, actual: str) -> str:
172 if actual.strip() != "":
173 actual = f"**{actual}**"
[all...]
/arkcompiler/ets_runtime/test/aottest/formatrangetoparts/
H A Dformatrangetoparts.js23 function compare(actual, expected, message) {
24 for (const [i, actualEntry, expectedEntry] of zip(actual, expected)) {
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/
H A Dg1_analytics.cpp141 static void DumpMetric(const char *msg, T actual, T prediction) in DumpMetric() argument
143 auto error = actual > 0 ? PERCENT_100_D * (prediction - actual) / actual : std::numeric_limits<double>::quiet_NaN(); in DumpMetric()
144 LOG(INFO, GC) << "G1Analytics metric: " << msg << " actual " << actual << " prediction " << prediction << " error " in DumpMetric()
148 static void DumpPauseMetric(const char *msg, uint64_t actual, uint64_t prediction, uint64_t totalPause) in DumpPauseMetric() argument
151 totalPause > 0 ? PERCENT_100_D * (prediction - actual) / totalPause : std::numeric_limits<double>::quiet_NaN(); in DumpPauseMetric()
152 LOG(INFO, GC) << "G1Analytics metric: " << msg << " actual " << actual << " predictio in DumpPauseMetric()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dgate.cpp40 OpCode actual = GetInGateConst(idx)->GetOpCode(); in CheckInputOpcode() local
41 if (actual != expected) { in CheckInputOpcode()
43 " actual:" + GateMetaData::Str(actual) + ")", idx); in CheckInputOpcode()
49 MachineType actual = GetInGateConst(idx)->GetMachineType(); in CheckInputMachineType() local
56 if (actual == MachineType::ARCH) { in CheckInputMachineType()
57 actual = isArch64 ? MachineType::I64 : MachineType::I32; in CheckInputMachineType()
59 if (actual != expected) { in CheckInputMachineType()
61 MachineTypeToStr(expected) + " actual:" + MachineTypeToStr(actual) in CheckInputMachineType()
67 MachineType actual = GetInGateConst(idx)->GetMachineType(); CheckNotInputMachineType() local
77 OpCode actual = gatePtr->GetOpCode(); CheckGeneralState() local
87 OpCode actual = gatePtr->GetOpCode(); CheckState() local
[all...]
/arkcompiler/ets_frontend/ets2panda/test/tsconfig/
H A Dtest.sh45 ACTUAL=$(mktemp /tmp/actual.XXXXXX)
64 echo "(cd $(realpath $TSCONFIG_DIR) && find . -type f -name '*abc' | sort > $(pwd)/actual.txt)"
65 echo "diff $(realpath $EXPECTED) $(pwd)/actual.txt"
/arkcompiler/runtime_core/libpandabase/tests/
H A Dbit_memory_region_test.cpp27 uint8_t actual = data[i / BITS_PER_BYTE] >> (i % BITS_PER_BYTE); in CompareData() local
28 ASSERT_EQ(expected & 1, actual & 1); in CompareData()
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dbit_memory_region_test.cpp28 uint8_t actual = data[i / BITS_PER_BYTE] >> (i % BITS_PER_BYTE); in CompareData() local
29 ASSERT_EQ(expected & 1U, actual & 1U); in CompareData()
/arkcompiler/ets_frontend/test/scripts/sdk_test/
H A Dexecution.py318 actual function name: {func_str}'

Completed in 9 milliseconds