Initial commit
This commit is contained in:
Executable
+47
@@ -0,0 +1,47 @@
|
||||
std::cout << "AtomicActivity5:" << std::endl
|
||||
<< "\tif1cond: " << sin->if1cond.getValue() << std::endl
|
||||
<< "\tif2cond: " << sin->if2cond.getValue() << std::endl
|
||||
<< "\tif3cond: " << sin->if3cond.getValue() << std::endl
|
||||
<< "\tif4cond: " << sin->if4cond.getValue() << std::endl
|
||||
<< "\tif1valueOrig: " << sin->if1valueOrig.getValue() << std::endl
|
||||
<< "\tif1valueOut: " << sin->if1valueOut.getValue() << std::endl
|
||||
<< "\tif2valueOrig: " << sin->if2valueOrig.getValue() << std::endl
|
||||
<< "\tif2valueOut: " << sin->if2valueOut.getValue() << std::endl;
|
||||
if (sin->if1valueOrig.getValue() != -1) {
|
||||
#include <sstream>
|
||||
std::stringstream ss;
|
||||
ss << "Test Failure: if1valueOrig [" << sin->if1valueOrig.getValue() << "] is not -1.";
|
||||
throw wfr::exception::wfr_fatal_error(ss.str());
|
||||
}
|
||||
if (sin->if2valueOrig.getValue() != -1) {
|
||||
#include <sstream>
|
||||
std::stringstream ss;
|
||||
ss << "Test Failure: if2valueOrig [" << sin->if2valueOrig.getValue() << "] is not -1.";
|
||||
throw wfr::exception::wfr_fatal_error(ss.str());
|
||||
}
|
||||
if (sin->if1cond.getValue() && sin->if1valueOut.getValue() != 2) {
|
||||
#include <sstream>
|
||||
std::stringstream ss;
|
||||
ss << "Test Failure: if1valueOut [" << sin->if1valueOut.getValue() << "] is not 2.";
|
||||
throw wfr::exception::wfr_fatal_error(ss.str());
|
||||
} else if (!sin->if1cond.getValue() && sin->if1valueOut.getValue() != 3) {
|
||||
#include <sstream>
|
||||
std::stringstream ss;
|
||||
ss << "Test Failure: if1valueOut [" << sin->if1valueOut.getValue() << "] is not 3.";
|
||||
throw wfr::exception::wfr_fatal_error(ss.str());
|
||||
}
|
||||
if (sin->if2cond.getValue() && sin->if2valueOut.getValue() != 4) {
|
||||
#include <sstream>
|
||||
std::stringstream ss;
|
||||
ss << "Test Failure: if2valueOut [" << sin->if2valueOut.getValue() << "] is not 4.";
|
||||
throw wfr::exception::wfr_fatal_error(ss.str());
|
||||
} else if (!sin->if2cond.getValue() && sin->if2valueOut.getValue() != -1) {
|
||||
#include <sstream>
|
||||
std::stringstream ss;
|
||||
ss << "Test Failure: if2valueOut [" << sin->if2valueOut.getValue() << "] is not -1.";
|
||||
throw wfr::exception::wfr_fatal_error(ss.str());
|
||||
}
|
||||
sout->if3condOut.setValue(sin->if3cond.getValue());
|
||||
sout->if4condOut.setValue(sin->if4cond.getValue());
|
||||
sout->isOk.setValue(true);
|
||||
|
||||
Reference in New Issue
Block a user