mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
chore(hash): add additional test
This commit is contained in:
parent
ca7b8c816f
commit
90e0ab260d
1 changed files with 8 additions and 0 deletions
|
|
@ -25,4 +25,12 @@ TEST_CASE("TSHashTable::Clear", "[hash]") {
|
|||
hashTable.Clear();
|
||||
REQUIRE(hashTable.Head() == nullptr);
|
||||
}
|
||||
|
||||
SECTION("clears hash table with multiple entries correctly") {
|
||||
TSHashTable<TestHashObject, HASHKEY_STRI> hashTable;
|
||||
hashTable.New("testKey1", 0, 0x0);
|
||||
hashTable.New("testKey2", 0, 0x0);
|
||||
hashTable.Clear();
|
||||
REQUIRE(hashTable.Head() == nullptr);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue