Changeset 1751:a2a454f1232d in lemon-0.x for test
- Timestamp:
- 11/02/05 16:24:38 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2280
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/matrix_maps_test.cc
r1728 r1751 54 54 matrix.set(it, jt, val); 55 55 check(matrix(it, jt) == val, "Wrong assign"); 56 check(matrix(it, jt) == matrix ColMap(matrix, it)[jt], "Wrong colMap");57 check(matrix(it, jt) == matrix RowMap(matrix, jt)[it], "Wrong rowMap");56 check(matrix(it, jt) == matrixRowMap(matrix, it)[jt], "Wrong rowMap"); 57 check(matrix(it, jt) == matrixColMap(matrix, jt)[it], "Wrong colMap"); 58 58 } 59 59 } … … 61 61 for (Graph::NodeIt it(graph); it != INVALID; ++it) { 62 62 for (Graph::NodeIt jt(graph); jt != INVALID; ++jt) { 63 check(cm(it, jt) == matrix ColMap(cm, it)[jt], "Wrong colMap");64 check(cm(it, jt) == matrix RowMap(cm, jt)[it], "Wrong rowMap");63 check(cm(it, jt) == matrixRowMap(cm, it)[jt], "Wrong rowMap"); 64 check(cm(it, jt) == matrixColMap(cm, jt)[it], "Wrong colMap"); 65 65 } 66 66 } … … 96 96 check(matrix(it, jt) == val, "Wrong assign"); 97 97 check(matrix(jt, it) == val, "Wrong assign"); 98 check(matrix(it, jt) == matrix ColMap(matrix, it)[jt], "Wrong colMap");99 check(matrix(it, jt) == matrix RowMap(matrix, jt)[it], "Wrong rowMap");98 check(matrix(it, jt) == matrixRowMap(matrix, it)[jt], "Wrong rowMap"); 99 check(matrix(it, jt) == matrixColMap(matrix, jt)[it], "Wrong colMap"); 100 100 } 101 101 } … … 103 103 for (Graph::NodeIt it(graph); it != INVALID; ++it) { 104 104 for (Graph::NodeIt jt(graph); jt != INVALID; ++jt) { 105 check(cm(it, jt) == matrix ColMap(cm, it)[jt], "Wrong colMap");106 check(cm(it, jt) == matrix RowMap(cm, jt)[it], "Wrong rowMap");105 check(cm(it, jt) == matrixRowMap(cm, it)[jt], "Wrong rowMap"); 106 check(cm(it, jt) == matrixColMap(cm, jt)[it], "Wrong colMap"); 107 107 } 108 108 }
Note: See TracChangeset
for help on using the changeset viewer.