39 lines
1.8 KiB
Plaintext
Executable File
39 lines
1.8 KiB
Plaintext
Executable File
/*if (wfOutput.unionPortOut1.getSize() != wfInput.iterationCount.getValue()) {
|
|
#include <sstream>
|
|
std::stringstream ss;
|
|
ss << "Test Failure: unionPortOut1 collection size [" << wfOutput.unionPortOut1.getSize() << "] is not equal iterCount [" << wfInput.iterationCount.getValue() << "].";
|
|
throw wfr::exception::wfr_fatal_error(ss.str());
|
|
}
|
|
if (wfOutput.outPortOut1.getValue() != wfInput.iterationCount.getValue()) {
|
|
#include <sstream>
|
|
std::stringstream ss;
|
|
ss << "Test Failure: outPortOut1 value [" << wfOutput.outPortOut1.getValue() << "] is not equal iterCount [" << wfInput.iterationCount.getValue() << "].";
|
|
throw wfr::exception::wfr_fatal_error(ss.str());
|
|
}
|
|
if (wfOutput.loopPortOut1.getValue() != wfInput.iterationCount.getValue()) {
|
|
#include <sstream>
|
|
std::stringstream ss;
|
|
ss << "Test Failure: loopPortOut1 value [" << wfOutput.loopPortOut1.getValue() << "] is not equal iterCount [" << wfInput.iterationCount.getValue() << "].";
|
|
throw wfr::exception::wfr_fatal_error(ss.str());
|
|
}*/
|
|
std::cout << "wfOutput:" << std::endl
|
|
<< "\toutPortOut1: " << wfOutput.outPortOut1.getValue() << std::endl
|
|
<< "\tloopPortOut1: " << wfOutput.loopPortOut1.getValue() << std::endl
|
|
<< "\tisOK: " << wfOutput.isOK.getValue() << std::endl;
|
|
std::cout << "\tunionPortOut1: [ ";
|
|
bool isFirst = true;
|
|
for (wfr_id_t t = 0; t < wfOutput.unionPortOut1.getSize(); t++) {
|
|
if (wfOutput.unionPortOut1.getEntryValue(t) != t+1) {
|
|
#include <sstream>
|
|
std::stringstream ss;
|
|
ss << "Test Failure: unionPortOut1 collection value index [" << t << "] does not have correct value [" << wfOutput.unionPortOut1.getEntryValue(t)<< "].";
|
|
throw wfr::exception::wfr_fatal_error(ss.str());
|
|
}
|
|
if (isFirst) {
|
|
isFirst = false;
|
|
} else {
|
|
std::cout << ", ";
|
|
}
|
|
std::cout << wfOutput.unionPortOut1.getEntryValue(t);
|
|
}
|
|
std::cout << " ]" << std::endl; |