diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-10-25 11:52:13 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-10-25 11:52:13 +0000 |
commit | 568a7e8eba0cac0555c286aa44a594c109b73276 (patch) | |
tree | 5dacae316af1316e7abb6e26f9acb22c7d036ec0 /test | |
parent | 72f2c7eed5b7ca85c95ead287b92509229e32e89 (diff) |
improve assertion checking in product
Diffstat (limited to 'test')
-rw-r--r-- | test/product.h | 2 | ||||
-rw-r--r-- | test/product_small.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/product.h b/test/product.h index 5ca56d995..62cbdee92 100644 --- a/test/product.h +++ b/test/product.h @@ -101,7 +101,7 @@ template<typename MatrixType> void product(const MatrixType& m) VERIFY_IS_APPROX(MatrixType::Identity(rows, cols)(r,c), static_cast<Scalar>(r==c)); if (rows!=cols) - VERIFY_RAISES_ASSERT(m3 = m1*m1); + VERIFY_RAISES_ASSERT(m3 = m1*m1); // test the previous tests were not screwed up because operator* returns 0 // (we use the more accurate default epsilon) diff --git a/test/product_small.cpp b/test/product_small.cpp index a1ff642e5..bc1a774b3 100644 --- a/test/product_small.cpp +++ b/test/product_small.cpp @@ -22,6 +22,7 @@ // License and a copy of the GNU General Public License along with // Eigen. If not, see <http://www.gnu.org/licenses/>. +#define EIGEN_NO_STATIC_ASSERT #include "product.h" void test_product_small() |