X-Git-Url: https://git.sthu.org/?p=libstick.git;a=blobdiff_plain;f=tests%2Fbooleanmatrix.h;h=9e33ee02d826aa60055526660bf10cef76c5b39b;hp=6cbf53847a62a93724a0ed91821e4a5577f7ea10;hb=54836e4fa90f52c9682c7918c47b28177e6f4170;hpb=c24df30e6826f1eca6444681c09723198bc675b7 diff --git a/tests/booleanmatrix.h b/tests/booleanmatrix.h index 6cbf538..9e33ee0 100644 --- a/tests/booleanmatrix.h +++ b/tests/booleanmatrix.h @@ -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);