Fixed test

release/4.3a0
Frank Dellaert 2015-07-18 18:28:39 -07:00
parent 2c765c735a
commit 45e99f05b6
1 changed files with 2 additions and 2 deletions

View File

@ -123,8 +123,8 @@ namespace gtsam {
double tol_;
equals_star(double tol = 1e-9) : tol_(tol) {}
bool operator()(const boost::shared_ptr<V>& expected, const boost::shared_ptr<V>& actual) {
if (!actual || !expected) return false;
return (traits<V>::Equals(*actual,*expected, tol_));
if (!actual || !expected) return true;
return actual && expected && traits<V>::Equals(*actual,*expected, tol_);
}
};