mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
feat(hash): add hash templates
This commit is contained in:
parent
399e3f02d6
commit
ac1be572c4
7 changed files with 374 additions and 0 deletions
13
test/Hash.cpp
Normal file
13
test/Hash.cpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include "storm/Hash.hpp"
|
||||
#include "test/Test.hpp"
|
||||
|
||||
struct TestHashObject: TSHashObject<TestHashObject, HASHKEY_STRI> {
|
||||
uint32_t index = 0;
|
||||
};
|
||||
|
||||
TEST_CASE("TSHashTable", "[hash]") {
|
||||
SECTION("constructs correctly") {
|
||||
TSHashTable<TestHashObject, HASHKEY_STRI> hashTable;
|
||||
REQUIRE(hashTable.Head() == nullptr);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue