mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-07 12:06:58 +03:00
* renamed Digital to Digit * added param migration * Update .github/label-commenter-config.yaml * renamed AnalogDigitTransition* to AnalogToDigitTransition* --------- Co-authored-by: CaCO3 <caco@ruinelli.ch>
27 lines
725 B
C++
27 lines
725 B
C++
#include "test_flow_postrocess_helper.h"
|
|
|
|
|
|
|
|
void test_getReadoutRawString() {
|
|
|
|
// no ROIs setted up
|
|
UnderTestPost* _undertestPost = setUpClassFlowPostprocessing(Digit100, 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());
|
|
|
|
|
|
|
|
} |