xo-arena: + DArenaVector template + unit test
This commit is contained in:
parent
17753316f8
commit
6b826e3e67
3 changed files with 256 additions and 0 deletions
26
utest/DArenaVector.test.cpp
Normal file
26
utest/DArenaVector.test.cpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/** @file DArenaVector.test.cpp
|
||||
*
|
||||
* @author Roland Conybeare, Jan 2026
|
||||
**/
|
||||
|
||||
#include "xo/arena/DArenaVector.hpp"
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
namespace xo {
|
||||
using xo::mm::DArenaVector;
|
||||
using xo::mm::ArenaConfig;
|
||||
using std::byte;
|
||||
|
||||
namespace ut {
|
||||
TEST_CASE("DArenaVector-tiny", "[arena][DArenaVector]")
|
||||
{
|
||||
ArenaConfig cfg { .name_ = "testarena",
|
||||
.size_ = 1 };
|
||||
DArenaVector<double> arenavec = DArenaVector<double>::map(cfg);
|
||||
|
||||
REQUIRE(arenavec.empty());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* end DArenaVector.test.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue