mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 12:36:52 +03:00
* fix kernel panic (vector out of range) in getReadoutRawString * fix key of caches * fix key of caches * fix key caches * fix cache keys * fix cache keys * move set variables to top * debug * fix key * testing * try fix changelog * test * Update Changelog.md for release * Revert "Update Changelog.md for release" This reverts commit4f51ec7962. * remove testing * fix release creation * testing * Update Changelog.md for release * test * Revert "Merge branch 'master' of https://github.com/haverland/AI-on-the-edge-device" This reverts commitf68695a4c0, reversing changes made toa096cf7182. * Revert "test" This reverts commita096cf7182. * revert testing * #1524 - ensure the result of ZeigerEvalHybridNeu is <10 * Fix late digit transition #1503 Co-authored-by: github-actions <github-actions@github.com>
27 lines
727 B
C++
27 lines
727 B
C++
#include "test_flow_postrocess_helper.h"
|
|
|
|
|
|
|
|
void test_getReadoutRawString() {
|
|
|
|
// no ROIs setted up
|
|
UnderTestPost* _undertestPost = setUpClassFlowPostprocessing(Digital100, Analogue100);
|
|
|
|
string result = _undertestPost->flowAnalog->getReadoutRawString(0);
|
|
TEST_ASSERT_EQUAL_STRING("", result.c_str());
|
|
|
|
// setted value
|
|
general* gen_analog = _undertestPost->flowAnalog->GetGENERAL("default", true);
|
|
gen_analog->ROI.clear();
|
|
roi* anaROI = new roi();
|
|
string name = "ana_1";
|
|
anaROI->name = name;
|
|
anaROI->result_float = 5.5;
|
|
gen_analog->ROI.push_back(anaROI);
|
|
|
|
result = _undertestPost->flowAnalog->getReadoutRawString(0);
|
|
TEST_ASSERT_EQUAL_STRING(",5.5", result.c_str());
|
|
|
|
|
|
|
|
} |