mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 08:59:07 +00:00
chore(hash): ensure correct const declarations in HASHKEY classes
This commit is contained in:
parent
73e0097395
commit
195e0319d1
3 changed files with 9 additions and 9 deletions
|
|
@ -18,19 +18,19 @@ TEST_CASE("HASHKEY_PTR", "[hash]") {
|
|||
SECTION("constructs correctly") {
|
||||
HASHKEY_PTR key1;
|
||||
HASHKEY_PTR key2;
|
||||
REQUIRE(key1.operator==(key2));
|
||||
REQUIRE(key1 == key2);
|
||||
|
||||
void* ptr = reinterpret_cast<void*>(0xDEAFBEEF);
|
||||
HASHKEY_PTR key3 = { ptr };
|
||||
HASHKEY_PTR key4 = { ptr };
|
||||
REQUIRE(key3.operator==(key4));
|
||||
REQUIRE(key3 == key4);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("HASHKEY_STR", "[hash]") {
|
||||
SECTION("constructs correctly") {
|
||||
HASHKEY_STR key = { "foo" };
|
||||
REQUIRE(key.operator==("foo"));
|
||||
REQUIRE(key == "foo");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue