mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 04:09:10 +08:00
Guard operator<< test by EIGEN_NO_IO.
This commit is contained in:
parent
ed00df445d
commit
dcf7655b3d
@ -75,10 +75,12 @@ template<typename Scalar, int Options> void quaternion(void)
|
||||
q1.coeffs().setRandom();
|
||||
VERIFY_IS_APPROX(q1.coeffs(), (q1*q2).coeffs());
|
||||
|
||||
#ifndef EIGEN_NO_IO
|
||||
// Printing
|
||||
std::ostringstream ss;
|
||||
ss << q2;
|
||||
VERIFY(ss.str() == "0i + 0j + 0k + 1");
|
||||
#endif
|
||||
|
||||
// concatenation
|
||||
q1 *= q2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user