From 9f8b6ad43e3e11eff89270616382bc15556895bd Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Tue, 19 Oct 2010 09:43:54 +0200 Subject: Fixed bug #79. --- test/nullary.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/nullary.cpp') diff --git a/test/nullary.cpp b/test/nullary.cpp index 78d2e9117..b0a416b25 100644 --- a/test/nullary.cpp +++ b/test/nullary.cpp @@ -71,6 +71,9 @@ void testVectorType(const VectorType& base) m = VectorType::LinSpaced(size,low,high); VERIFY( (m-n).norm() < std::numeric_limits::epsilon()*10e3 ); + // Assignment of a RowVectorXd to a MatrixXd (regression test for bug #79). + VERIFY( (MatrixXd(RowVectorXd::LinSpaced(3, 0, 1)) - RowVector3d(0, 0.5, 1)).norm() < std::numeric_limits::epsilon() ); + // These guys sometimes fail! This is not good. Any ideas how to fix them!? //VERIFY( m(m.size()-1) == high ); //VERIFY( m(0) == low ); -- cgit v1.2.3