12 #include <boost/foreach.hpp>
13 #if BOOST_VERSION >= 105900
14 #include <boost/test/tools/output_test_stream.hpp>
16 #include <boost/test/output_test_stream.hpp>
18 #include <boost/test/unit_test.hpp>
21 #define BOOST_TEST_MODULE signal_array
23 using boost::test_tools::output_test_stream;
34 sigArr_C.operator<<(sigBa);
35 sigArr_C.operator<<(sigBa);
36 BOOST_CHECK_EQUAL(2, sigArr_C.
getSize());
39 sigArr.operator<<(sigBa);
40 sigArr.operator<<(sigBa);
41 BOOST_CHECK_EQUAL(2, sigArr.getSize());
46 sigA.operator<<(sigB);
48 BOOST_CHECK_EQUAL(sigA.getSize(), sig_C.
getSize());
55 BOOST_CHECK_EQUAL(
true, sigB.
getReady());
64 output_test_stream output;
66 BOOST_CHECK(output.is_equal(
""));
73 res = (aea.
getCode() == ExceptionSignal::PLUG_IMPOSSIBLE);
81 res = (aea.
getCode() == ExceptionSignal::PLUG_IMPOSSIBLE);
89 res = (aea.
getCode() == ExceptionSignal::PLUG_IMPOSSIBLE);
96 std::istringstream iss(
"empty");
101 res = (aea.
getCode() == ExceptionSignal::SET_IMPOSSIBLE);
107 std::ostringstream oss;
111 res = (aea.
getCode() == ExceptionSignal::SET_IMPOSSIBLE);
120 res = (aea.
getCode() == ExceptionSignal::SET_IMPOSSIBLE);
129 res = (aea.
getCode() == ExceptionSignal::SET_IMPOSSIBLE);
135 BOOST_CHECK(output.is_equal(
"Sig:test"));
139 std::istringstream iss;
144 std::istringstream iss_fail;
150 output_test_stream output;
161 amatrix.resize(2, 2);
168 std::istringstream aiss(
"test");