27 lines
No EOL
367 B
C++
27 lines
No EOL
367 B
C++
|
|
#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();
|
|
} |