# | Line 250 | Line 250 | void RectMatrixTestCase::testRowColOperations() { | |
---|---|---|
250 | ||
251 | //test getRow | |
252 | row = e.getRow(0); | |
253 | < | CPPUNIT_ASSERT(row[0] == 2.0 && row[1] == 4.0 && row[2] == 1.0) |
253 | > | CPPUNIT_ASSERT(row[0] == 2.0 && row[1] == 4.0 && row[2] == 1.0); |
254 | ||
255 | //test setRow | |
256 | row[0] = 2.0; | |
# | Line 269 | Line 269 | void RectMatrixTestCase::testRowColOperations() { | |
269 | ||
270 | //test getCol | |
271 | col = e.getCol(1); | |
272 | < | CPPUNIT_ASSERT(col[0] == 4.0 && col[1] == 0.0 && col[2] == 6.0) |
272 | > | CPPUNIT_ASSERT(col[0] == 4.0 && col[1] == 0.0 && col[2] == 6.0); |
273 | ||
274 | //test setCol | |
275 | col[0] = 2.0; | |
276 | col[1] = 0.0; | |
277 | col[2] = 0.0; | |
278 | < | m.setCol(0, col); |
278 | > | m.setColum(0, col); |
279 | col[0] = 4.0; | |
280 | col[1] = 0.0; | |
281 | col[2] = 6.0; | |
282 | < | m.setCol(1, col); |
282 | > | m.setColum(1, col); |
283 | col[0] = 1.0; | |
284 | col[1] = 3.0; | |
285 | col[2] = 5.0; | |
286 | < | m.setCol(2, col); |
286 | > | m.setColum(2, col); |
287 | CPPUNIT_ASSERT(m == e); | |
288 | ||
289 | //test swapRow | |
# | Line 309 | Line 309 | void RectMatrixTestCase::testRowColOperations() { | |
309 | s(2, 1) = 0.0; | |
310 | s(2, 2) = 5.0; | |
311 | ||
312 | < | s.swapCol(0, 1); |
312 | > | s.swapColum(0, 1); |
313 | CPPUNIT_ASSERT(s == e); | |
314 | ||
315 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |