26 lines
1.1 KiB
Plaintext
Executable File
26 lines
1.1 KiB
Plaintext
Executable File
std::cout << "wfOutput:" << std::endl
|
|
<< "\tglobalOut1: " << wfOutput.globalOut1.getValue() << std::endl
|
|
<< "\tisOK: " << wfOutput.isOK.getValue() << std::endl;
|
|
std::cout << "\tglobalOut2: [ ";
|
|
bool isFirst = true;
|
|
for (wfr_id_t t = 0; t < wfOutput.globalOut2.getSize(); t++) {
|
|
if (wfOutput.globalOut2.getEntryValue(t) != t+1) {
|
|
#include <sstream>
|
|
std::stringstream ss;
|
|
ss << "Test Failure: globalOut2 collection value index [" << t << "] does not have correct value [" << wfOutput.globalOut2.getEntryValue(t)<< "].";
|
|
throw wfr::exception::wfr_fatal_error(ss.str());
|
|
}
|
|
if (isFirst) {
|
|
isFirst = false;
|
|
} else {
|
|
std::cout << ", ";
|
|
}
|
|
std::cout << wfOutput.globalOut2.getEntryValue(t);
|
|
}
|
|
std::cout << " ]" << std::endl;
|
|
if (wfOutput.globalOut2.getSize() != wfInput.iterationCount.getValue()+1) {
|
|
#include <sstream>
|
|
std::stringstream ss;
|
|
ss << "Test Failure: globalOut2 size [" << wfOutput.globalOut2.getSize() << "] is not equal iterationCount+1 [" << wfInput.iterationCount.getValue()+1 << "].";
|
|
throw wfr::exception::wfr_fatal_error(ss.str());
|
|
} |