Skip to content
Snippets Groups Projects
Commit 8b7d90ab authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Use stringstream to pass values in set/get test.

    * unitTesting/test_signalcast.cpp.
parent 2b101e36
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,10 @@ int main() {
cout << "[disp] Enumerating boost unit vectors" << endl;
for (int i = 0; i < 5; ++ i) {
unit_vector<double> v (5, i);
myVectorSignal.setConstant(v);
std::ostringstream os;
os << v;
std::istringstream ss(os.str());
myVectorSignal.set(ss);
// print out signal value
try{myVectorSignal.get(cout);}
catch( const ExceptionAbstract & exp ) { cout << exp << std::endl; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment