aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/nullary.cpp
diff options
context:
space:
mode:
authorGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2011-03-24 10:42:11 +0000
committerGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2011-03-24 10:42:11 +0000
commitc6ad2deead4e8f7db743a103200b51cfaf1d8e7f (patch)
tree08fc1e8438f9fbb3d0b3580e37145fd21f2d5598 /test/nullary.cpp
parent42bc1f77be65ec5557c00d53ce988598c47a0c5f (diff)
Bug fix in linspace_op::packetOp(row,col). Fixes bug #232.
Also, add regression test.
Diffstat (limited to 'test/nullary.cpp')
-rw-r--r--test/nullary.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/nullary.cpp b/test/nullary.cpp
index 70cd30df2..0bde253df 100644
--- a/test/nullary.cpp
+++ b/test/nullary.cpp
@@ -1,7 +1,7 @@
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
-// Copyright (C) 2010 Jitse Niesen <jitse@maths.leeds.ac.uk>
+// Copyright (C) 2010-2011 Jitse Niesen <jitse@maths.leeds.ac.uk>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@ -120,10 +120,9 @@ void test_nullary()
for(int i = 0; i < g_repeat; i++) {
CALL_SUBTEST_4( testVectorType(VectorXd(internal::random<int>(1,300))) );
- CALL_SUBTEST_5( testVectorType(VectorXd(internal::random<int>(1,300))) );
+ CALL_SUBTEST_5( testVectorType(Vector4d()) ); // regression test for bug 232
CALL_SUBTEST_6( testVectorType(Vector3d()) );
CALL_SUBTEST_7( testVectorType(VectorXf(internal::random<int>(1,300))) );
- CALL_SUBTEST_8( testVectorType(VectorXf(internal::random<int>(1,300))) );
- CALL_SUBTEST_9( testVectorType(Vector3f()) );
+ CALL_SUBTEST_8( testVectorType(Vector3f()) );
}
}