Extend unit test to stress smart_copy with empty input/output.

This commit is contained in:
Gael Guennebaud 2016-02-19 22:59:28 +01:00
parent 6fa35bbd28
commit 2af04f1a57

View File

@ -38,7 +38,7 @@ template<typename MatrixType> void zeroSizedMatrix()
if (MatrixType::RowsAtCompileTime == Dynamic && MatrixType::ColsAtCompileTime == Dynamic) if (MatrixType::RowsAtCompileTime == Dynamic && MatrixType::ColsAtCompileTime == Dynamic)
{ {
MatrixType t2(0, 0); MatrixType t2(0, 0), t3(t1);
VERIFY(t2.rows() == 0); VERIFY(t2.rows() == 0);
VERIFY(t2.cols() == 0); VERIFY(t2.cols() == 0);