[PPL-devel] [GIT] ppl/ppl(master): tests/Sparse_Matrix: modify the tests so that they pass even when using 8-bit coefficients.
Marco Poletti
poletti.marco at gmail.com
Sun Sep 5 19:34:22 CEST 2010
Module: ppl/ppl
Branch: master
Commit: fbd049063bb780243de844ae69863ec99614e8e8
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=fbd049063bb780243de844ae69863ec99614e8e8
Author: Marco Poletti <poletti.marco at gmail.com>
Date: Sun Sep 5 19:32:52 2010 +0200
tests/Sparse_Matrix: modify the tests so that they pass even when using 8-bit coefficients.
---
tests/Sparse_Matrix/sparsematrix1.cc | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/Sparse_Matrix/sparsematrix1.cc b/tests/Sparse_Matrix/sparsematrix1.cc
index bc6990d..daf85fe 100644
--- a/tests/Sparse_Matrix/sparsematrix1.cc
+++ b/tests/Sparse_Matrix/sparsematrix1.cc
@@ -135,8 +135,8 @@ test03() {
Sparse_Matrix large(2,5);
Sparse_Matrix tall(6,3);
- large[0][4] = 100;
- tall[4][0] = 200;
+ large[0][4] = 10;
+ tall[4][0] = 20;
std::swap(large, tall);
@@ -152,10 +152,10 @@ test03() {
if (tall.num_rows() != 2)
return false;
- if (tall[0][4] != 100)
+ if (tall[0][4] != 10)
return false;
- if (large[4][0] != 200)
+ if (large[4][0] != 20)
return false;
return true;
More information about the PPL-devel
mailing list