Use boolean_vector in boolean_matrix
[libstick.git] / tests / booleanmatrix.h
index 6cbf53847a62a93724a0ed91821e4a5577f7ea10..9e33ee02d826aa60055526660bf10cef76c5b39b 100644 (file)
@@ -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);
 
-            col.push_back(0);
-            col.push_back(3);
-            col.push_back(8);
-            col.push_back(14);
+            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);
@@ -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);
 
-            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);