School Commit Init
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#include <assert.h>
|
||||
#include "Matrix.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
void testAll() {
|
||||
Matrix m(4, 4);
|
||||
assert(m.nrLines() == 4);
|
||||
assert(m.nrColumns() == 4);
|
||||
m.modify(1, 1, 5);
|
||||
assert(m.element(1, 1) == 5);
|
||||
TElem old = m.modify(1, 1, 6);
|
||||
assert(m.element(1, 2) == NULL_TELEM);
|
||||
assert(old == 5);
|
||||
}
|
||||
Reference in New Issue
Block a user