mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
Guard operator<< test by EIGEN_NO_IO.
This commit is contained in:
parent
ed00df445d
commit
dcf7655b3d
@ -75,11 +75,13 @@ 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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user