Commit 85fcf12f authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux
Browse files

Add a test on plugging signals of type string

parent db25cb65
......@@ -86,3 +86,19 @@ BOOST_AUTO_TEST_CASE(normal_test) {
cout << std::endl;
BOOST_AUTO_TEST_CASE (plug_signal_string)
Signal<std::string, int> outSig("output");
SignalPtr<std::string, int> inSig (NULL, "input");
std::string str ("value");
inSig.plug (&outSig);
std::ostringstream os;
inSig.get (os);
std::string res (os.str ());
// Note that a '\n' is added when passing through the signal
BOOST_CHECK (res == str);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment