projects
/
libstick.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pkg: remove version from include/libstick-0.1/
[libstick.git]
/
tests
/
booleanmatrix.h
diff --git
a/tests/booleanmatrix.h
b/tests/booleanmatrix.h
index 71533ffbaf392ef44841d778196e3aaea8390e95..8ab71279810753c91e2c33392946442f86a0dfdf 100644
(file)
--- a/
tests/booleanmatrix.h
+++ b/
tests/booleanmatrix.h
@@
-4,7
+4,7
@@
#include <cpptest.h>
#include <cpptest-suite.h>
#include <cpptest.h>
#include <cpptest-suite.h>
-#include <libstick
-0.1
/booleanmatrix.h>
+#include <libstick/booleanmatrix.h>
using namespace libstick;
using namespace libstick;
@@
-63,10
+63,10
@@
class boolean_matrix_TestSuite: public Test::Suite {
for (unsigned c=0; c < size; ++c)
TEST_ASSERT(mat.get_column(c).size() == 0);
for (unsigned c=0; c < size; ++c)
TEST_ASSERT(mat.get_column(c).size() == 0);
- col.
push_back(3
);
- col.
push_back(14
);
- col.
push_back(8
);
- col.
push_back(0
);
+ col.
set(0, true
);
+ col.
set(3, true
);
+ col.
set(8, true
);
+ col.
set(14, true
);
// Add column and test for values
mat.add_column(5, col);
// Add column and test for values
mat.add_column(5, col);
@@
-90,10
+90,10
@@
class boolean_matrix_TestSuite: public Test::Suite {
for (unsigned r=0; r < size; ++r)
TEST_ASSERT(mat.get_row(r).size() == 0);
for (unsigned r=0; r < size; ++r)
TEST_ASSERT(mat.get_row(r).size() == 0);
- row.
push_back(0
);
- row.
push_back(8
);
- row.
push_back(14
);
- row.
push_back(3
);
+ row.
set(0, true
);
+ row.
set(8, true
);
+ row.
set(14, true
);
+ row.
set(3, true
);
// Add row and test for values
mat.add_row(5, row);
// Add row and test for values
mat.add_row(5, row);