various minor updates of some unit tests

This commit is contained in:
Gael Guennebaud
2009-05-11 11:09:41 +00:00
parent 6a4e94f349
commit 9b256d997e
4 changed files with 14 additions and 5 deletions

View File

@@ -121,8 +121,8 @@ template<typename Scalar> void lines()
VERIFY_IS_APPROX(result, center);
// check conversions between two types of lines
CoeffsType converted_coeffs(HLine(PLine(line_u)).coeffs());
converted_coeffs *= line_u.coeffs()(0)/converted_coeffs(0);
CoeffsType converted_coeffs = HLine(PLine(line_u)).coeffs();
converted_coeffs *= (line_u.coeffs()[0])/(converted_coeffs[0]);
VERIFY(line_u.coeffs().isApprox(converted_coeffs));
}
}