Small change in file that might disappear anyway

release/4.3a0
dellaert 2014-12-08 12:34:55 +01:00
parent 2af04a8e41
commit ccd843040e
1 changed files with 3 additions and 6 deletions

View File

@ -31,6 +31,9 @@ template<typename T>
void testDefaultChart(TestResult& result_,
const std::string& name_,
const T& value) {
GTSAM_CONCEPT_TESTABLE_TYPE(T);
typedef typename gtsam::DefaultChart<T> Chart;
typedef typename Chart::vector Vector;
@ -39,12 +42,6 @@ void testDefaultChart(TestResult& result_,
BOOST_CONCEPT_ASSERT((ChartConcept<Chart>));
T other = value;
// Check for the existence of a print function.
gtsam::traits::print<T>()(value, "value");
gtsam::traits::print<T>()(other, "other");
// Check for the existence of "equals"
EXPECT(gtsam::traits::equals<T>()(value, other, 1e-12));
// Check that the dimension of the local value matches the chart dimension.
Vector dx = Chart::local(value, other);