Fixed test
parent
2c765c735a
commit
45e99f05b6
|
|
@ -123,8 +123,8 @@ namespace gtsam {
|
||||||
double tol_;
|
double tol_;
|
||||||
equals_star(double tol = 1e-9) : tol_(tol) {}
|
equals_star(double tol = 1e-9) : tol_(tol) {}
|
||||||
bool operator()(const boost::shared_ptr<V>& expected, const boost::shared_ptr<V>& actual) {
|
bool operator()(const boost::shared_ptr<V>& expected, const boost::shared_ptr<V>& actual) {
|
||||||
if (!actual || !expected) return false;
|
if (!actual || !expected) return true;
|
||||||
return (traits<V>::Equals(*actual,*expected, tol_));
|
return actual && expected && traits<V>::Equals(*actual,*expected, tol_);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue