forked from Alepha/Alepha
26 lines
495 B
C++
26 lines
495 B
C++
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 ) );
|
|
};
|
|
};
|