School Commit Init

This commit is contained in:
2024-08-31 12:07:21 +03:00
commit 0b130ee18c
2801 changed files with 4720552 additions and 0 deletions
@@ -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);
}