1
0
forked from Alepha/Alepha

Relocate Blob, Buffer, and DataChain to Memory.

This commit is contained in:
2024-05-16 13:36:47 -04:00
parent f47b942e28
commit 94b0a1561b
7 changed files with 7 additions and 6 deletions

25
Memory/Blob.test/0.cc Normal file
View File

@ -0,0 +1,25 @@
static_assert( __cplusplus > 2020'99 );
#include "../Blob.h"
#include <Alepha/Testing/test.h>
#include <Alepha/Utility/evaluation_helpers.h>
static auto init= Alepha::Utility::enroll <=[]
{
using namespace Alepha::Testing::literals::test_literals;
"Simple carve head test"_test <=[]
{
Alepha::Blob b{ 1024 };
auto b2= b.carveHead( 256 );
assert( b.size() == 768 );
assert( b2.size() == 256 );
std::string h= "Hello world";
copyData( b2, Alepha::make_buffer( h ) );
};
};

View File

@ -0,0 +1 @@
unit_test( 0 )