Skip to content
Snippets Groups Projects
Commit 56fdd91f authored by Olivier Stasse's avatar Olivier Stasse Committed by olivier stasse
Browse files

[tests] Fix style of signal-time-dependent

parent 7cd502cf
No related branches found
No related tags found
No related merge requests found
// Copyright 2010 Thomas Moulard. // Copyright 2010 Thomas Moulard.
// //
#include <iostream>
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
#include <iostream>
#include <dynamic-graph/signal-time-dependent.h> #include <dynamic-graph/signal-time-dependent.h>
#include <dynamic-graph/signal.h> #include <dynamic-graph/signal.h>
...@@ -210,13 +210,13 @@ BOOST_AUTO_TEST_CASE(signaltimedependent) { ...@@ -210,13 +210,13 @@ BOOST_AUTO_TEST_CASE(signaltimedependent) {
sig1.needUpdate(6); sig1.needUpdate(6);
sig1.needUpdate(6); sig1.needUpdate(6);
output_test_stream output; output_test_stream output;
sig1.writeGraph(output); sig1.writeGraph(output);
BOOST_CHECK(output.is_equal("")); BOOST_CHECK(output.is_equal(""));
sig1.removeDependency(sig3); sig1.removeDependency(sig3);
BOOST_CHECK(true); BOOST_CHECK(true);
const double & avalue =sig1(6); const double &avalue = sig1(6);
output << avalue; output << avalue;
BOOST_CHECK(true); BOOST_CHECK(true);
/// Verify check compatibility /// Verify check compatibility
...@@ -224,8 +224,7 @@ BOOST_AUTO_TEST_CASE(signaltimedependent) { ...@@ -224,8 +224,7 @@ BOOST_AUTO_TEST_CASE(signaltimedependent) {
sig1.checkCompatibility(); sig1.checkCompatibility();
} }
// catch(double e) // catch(double e)
catch(...) catch (...) {
{
std::cout << "Message: test \n"; std::cout << "Message: test \n";
} }
BOOST_CHECK(true); BOOST_CHECK(true);
......
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