Relax the tolerance in QuaternionParameterizationTestHelper.

This commit relaxes the tolerance value for comparing between the actual
local matrix and the expected local matrix. Without this fix,
EigenQuaternionParameterization.ZeroTest could fail as the difference
exactly matches the value of std::numeric_limits<double>::epsilon().

Change-Id: Ic4d3f26c0acdf5f16fead80dfdc53df9e7dabbf9
This commit is contained in:
Je Hyeong Hong
2016-10-18 22:49:11 +01:00
parent 7ed9e2fb7f
commit e892499e8d
@@ -295,7 +295,7 @@ void QuaternionParameterizationTestHelper(
global_matrix * MatrixRef(jacobian, kGlobalSize, kLocalSize);
EXPECT_NEAR((local_matrix - expected_local_matrix).norm(),
0.0,
std::numeric_limits<double>::epsilon());
10.0 * std::numeric_limits<double>::epsilon());
}
template <int N>