Files
WFR-UnitTests/iwir/coderepo/if01/wfOutput.code
T
2017-07-24 16:37:13 +02:00

64 lines
3.0 KiB
Plaintext
Executable File

std::cout << "wfOutput:" << std::endl
<< "\tisOk1: " << wfOutput.isOk1.getValue() << std::endl
<< "\tisOk2: " << wfOutput.isOk2.getValue() << std::endl
<< "\tif1valueOut: " << wfOutput.if1valueOut.getValue() << std::endl
<< "\tif2valueOut: " << wfOutput.if2ValueOut.getValue() << std::endl
<< "\tif3valueOut: " << wfOutput.if3ValueOut.getValue() << std::endl
<< "\tif4valueOut: " << wfOutput.if4ValueOut.getValue() << std::endl;
if (wfOutput.isOk1.getValue() != true) {
#include <sstream>
std::stringstream ss;
ss << "Test Failure: isOk1 [" << wfOutput.isOk1.getValue() << "] is not true.";
throw wfr::exception::wfr_fatal_error(ss.str());
}
if (wfOutput.isOk2.getValue() != true) {
#include <sstream>
std::stringstream ss;
ss << "Test Failure: isOk2 [" << wfOutput.isOk2.getValue() << "] is not true.";
throw wfr::exception::wfr_fatal_error(ss.str());
}
if (wfInput.if1cond.getValue() && wfOutput.if1valueOut.getValue() != 2) {
#include <sstream>
std::stringstream ss;
ss << "Test Failure: if1valueOut [" << wfOutput.if1valueOut.getValue() << "] is not 2.";
throw wfr::exception::wfr_fatal_error(ss.str());
} else if (!wfInput.if1cond.getValue() && wfOutput.if1valueOut.getValue() != 3) {
#include <sstream>
std::stringstream ss;
ss << "Test Failure: if1valueOut [" << wfOutput.if1valueOut.getValue() << "] is not 3.";
throw wfr::exception::wfr_fatal_error(ss.str());
}
if (wfInput.if2cond.getValue() && wfOutput.if2ValueOut.getValue() != 4) {
#include <sstream>
std::stringstream ss;
ss << "Test Failure: if2valueOut [" << wfOutput.if2ValueOut.getValue() << "] is not 4.";
throw wfr::exception::wfr_fatal_error(ss.str());
} else if (!wfInput.if2cond.getValue() && wfOutput.if2ValueOut.getValue() != -1) {
#include <sstream>
std::stringstream ss;
ss << "Test Failure: if2valueOut [" << wfOutput.if2ValueOut.getValue() << "] is not -1.";
throw wfr::exception::wfr_fatal_error(ss.str());
}
if (wfInput.if3cond.getValue() && wfOutput.if3ValueOut.getValue() != -1) {
#include <sstream>
std::stringstream ss;
ss << "Test Failure: if3valueOut [" << wfOutput.if3ValueOut.getValue() << "] is not -1.";
throw wfr::exception::wfr_fatal_error(ss.str());
} else if (!wfInput.if3cond.getValue() && wfOutput.if3ValueOut.getValue() != 6) {
#include <sstream>
std::stringstream ss;
ss << "Test Failure: if3valueOut [" << wfOutput.if3ValueOut.getValue() << "] is not 6.";
throw wfr::exception::wfr_fatal_error(ss.str());
}
if (wfInput.if4cond.getValue() && wfOutput.if4ValueOut.getValue() != 7) {
#include <sstream>
std::stringstream ss;
ss << "Test Failure: if4valueOut [" << wfOutput.if4ValueOut.getValue() << "] is not 7.";
throw wfr::exception::wfr_fatal_error(ss.str());
} else if (!wfInput.if4cond.getValue() && wfOutput.if4ValueOut.getValue() != -1) {
#include <sstream>
std::stringstream ss;
ss << "Test Failure: if4valueOut [" << wfOutput.if4ValueOut.getValue() << "] is not -1.";
throw wfr::exception::wfr_fatal_error(ss.str());
}