aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/nullary.cpp
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-10-19 09:43:54 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-10-19 09:43:54 +0200
commit9f8b6ad43e3e11eff89270616382bc15556895bd (patch)
tree51df0aba10509001507cb5c3d238008a20e3f3c0 /test/nullary.cpp
parent3481f10e7aec79ef9b2fa380bbd00c05cefbebb8 (diff)
Fixed bug #79.
Diffstat (limited to 'test/nullary.cpp')
-rw-r--r--test/nullary.cpp3
1 files changed, 3 insertions, 0 deletions
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<Scalar>::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<Scalar>::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 );