aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sparse_ref.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-02-09 10:23:45 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-02-09 10:23:45 +0100
commit3af29caae87b00ed8f002605573d227ad1b629a4 (patch)
tree9ac73034204b7fd7446a88a21cc7d1d59a209c8c /test/sparse_ref.cpp
parentf2ff8c091e02b4aab8c7568807c09e43f51d1156 (diff)
Cleaning and add more unit tests for Ref<SparseMatrix> and Map<SparseMatrix>
Diffstat (limited to 'test/sparse_ref.cpp')
-rw-r--r--test/sparse_ref.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/sparse_ref.cpp b/test/sparse_ref.cpp
index b261cecf3..27700f827 100644
--- a/test/sparse_ref.cpp
+++ b/test/sparse_ref.cpp
@@ -69,8 +69,9 @@ void call_ref()
VERIFY_EVALUATION_COUNT( call_ref_2(A*A, A*A), 1);
Ref<SparseMatrix<float> > Ar(A);
- VERIFY_EVALUATION_COUNT( call_ref_1(Ar, Ar), 0);
- VERIFY_EVALUATION_COUNT( call_ref_2(Ar, Ar), 0);
+ VERIFY_IS_APPROX(Ar+Ar, A+A);
+ VERIFY_EVALUATION_COUNT( call_ref_1(Ar, A), 0);
+ VERIFY_EVALUATION_COUNT( call_ref_2(Ar, A), 0);
Ref<SparseMatrix<float,RowMajor> > Br(B);
VERIFY_EVALUATION_COUNT( call_ref_1(Br.transpose(), Br.transpose()), 0);