Buffer 2d (No tests)

This commit is contained in:
IlushaShurupov 2023-07-15 13:25:10 +03:00 committed by Ilya Shurupov
parent ffa90323a4
commit 0ec44ee2d1
4 changed files with 97 additions and 1 deletions

View file

@ -0,0 +1,27 @@
#include "Tests.hpp"
#include "Testing.hpp"
#include "Buffer2D.hpp"
#include <iostream>
using namespace tp;
const ualni size = 1000;
TEST_DEF_STATIC(Simple1) {
Buffer2D<int> buff;
buff.reserve({ 4, 4 });
buff.set( 2, 2, 5);
TEST(buff.get(2, 2) == 5);
}
TEST_DEF_STATIC(Simple2) {
// TEST(false);
}
TEST_DEF(Buffer2d) {
testSimple1();
testSimple2();
}

View file

@ -37,6 +37,7 @@ int main() {
testMap();
testAvl();
testBuffer();
testBuffer2d();
testModule.deinitialize();
}

View file

@ -71,4 +71,5 @@ public:
void testList();
void testMap();
void testAvl();
void testBuffer();
void testBuffer();
void testBuffer2d();