aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/qr_fullpivoting.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-06-26 16:22:49 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-06-26 16:22:49 +0200
commit392a30db824161a0466f7970e12e5a48ed05ebd9 (patch)
treef06e75bd415b18e5fba931bcb492c0d0953a9e3e /test/qr_fullpivoting.cpp
parentc911fc8dee71809c7b6a3e60e4a582ac6da37815 (diff)
Use VERIFY_IS_EQUAL instead of VERIFY(a==b) to get more feedback in case of failure
Diffstat (limited to 'test/qr_fullpivoting.cpp')
-rw-r--r--test/qr_fullpivoting.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/qr_fullpivoting.cpp b/test/qr_fullpivoting.cpp
index 601773404..d82e123d0 100644
--- a/test/qr_fullpivoting.cpp
+++ b/test/qr_fullpivoting.cpp
@@ -23,8 +23,8 @@ template<typename MatrixType> void qr()
MatrixType m1;
createRandomPIMatrixOfRank(rank,rows,cols,m1);
FullPivHouseholderQR<MatrixType> qr(m1);
- VERIFY(rank == qr.rank());
- VERIFY(cols - qr.rank() == qr.dimensionOfKernel());
+ VERIFY_IS_EQUAL(rank, qr.rank());
+ VERIFY_IS_EQUAL(cols - qr.rank(), qr.dimensionOfKernel());
VERIFY(!qr.isInjective());
VERIFY(!qr.isInvertible());
VERIFY(!qr.isSurjective());