Guard operator<< test by EIGEN_NO_IO.

This commit is contained in:
Rasmus Munk Larsen 2020-07-09 19:54:48 +00:00
parent ed00df445d
commit dcf7655b3d

View File

@ -75,10 +75,12 @@ template<typename Scalar, int Options> void quaternion(void)
q1.coeffs().setRandom(); q1.coeffs().setRandom();
VERIFY_IS_APPROX(q1.coeffs(), (q1*q2).coeffs()); VERIFY_IS_APPROX(q1.coeffs(), (q1*q2).coeffs());
#ifndef EIGEN_NO_IO
// Printing // Printing
std::ostringstream ss; std::ostringstream ss;
ss << q2; ss << q2;
VERIFY(ss.str() == "0i + 0j + 0k + 1"); VERIFY(ss.str() == "0i + 0j + 0k + 1");
#endif
// concatenation // concatenation
q1 *= q2; q1 *= q2;