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);
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);