xo-arena: DArenaHashMap [WIP]
This commit is contained in:
parent
d00fb57671
commit
0e6ab862d1
5 changed files with 180 additions and 1 deletions
26
xo-arena/utest/DArenaHashMap.test.cpp
Normal file
26
xo-arena/utest/DArenaHashMap.test.cpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/** @file DArenaHashMap.test.cpp
|
||||
*
|
||||
* @author Roland Conybeare, Jan 2026
|
||||
**/
|
||||
|
||||
#include "DArenaHashMap.hpp"
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
namespace xo {
|
||||
using xo::mm::DArenaHashMap;
|
||||
//using xo::mM::ArenaConfig;
|
||||
|
||||
namespace ut {
|
||||
TEST_CASE("DArenaHashMap-ctor", "[arena][DArenaHashMap]")
|
||||
{
|
||||
using HashMap = DArenaHashMap<int, int>;
|
||||
|
||||
HashMap map;
|
||||
|
||||
REQUIRE(map.empty());
|
||||
REQUIRE(map.capacity() == HashMap::group_size());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* end DArenaHashMap.test.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue