mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Update ExpectArraysClose to use ExpectClose instead of EXPECT_NEAR
The documentation for ExpectArraysClose and its implementation did not match. This change makes the polynomial_test not fail on 64bit AMD builds. Thanks to Phillip Huebner for reporting this. Change-Id: I503f2d3317a28d5885a34f8bdbccd49d20ae9ba2
This commit is contained in:
@@ -117,7 +117,10 @@ void ExpectArraysClose(int n,
|
||||
CHECK(q);
|
||||
|
||||
for (int i = 0; i < n; ++i) {
|
||||
EXPECT_NEAR(p[i], q[i], tol) << "i=" << i;
|
||||
EXPECT_TRUE(ExpectClose(p[i], q[i], tol))
|
||||
<< "p[" << i << "]" << p[i] << " "
|
||||
<< "q[" << i << "]" << q[i] << " "
|
||||
<< "tol: " << tol;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user