Skip to content

Commit

Permalink
test(core): cover const dictionary find
Browse files Browse the repository at this point in the history
  • Loading branch information
RiscadoA committed Sep 28, 2023
1 parent 18a65dc commit d8ab876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tests/reflection/traits/dictionary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void testDictionary(T& value, std::size_t length, const K* insertedKey, V* inser
{
REQUIRE(trait.find(&value, insertedKey).isNull());
REQUIRE(trait.insertDefault(&value, insertedKey));
auto it = trait.find(&value, insertedKey);
auto it = trait.find(static_cast<const void*>(&value), insertedKey);
REQUIRE(!it.isNull());

if constexpr (std::equality_comparable<K>)
Expand Down Expand Up @@ -94,7 +94,7 @@ void testDictionary(T& value, std::size_t length, const K* insertedKey, V* inser
{
REQUIRE(trait.find(&value, insertedKey).isNull());
REQUIRE(trait.insertMove(&value, insertedKey, insertedValue));
auto it = trait.find(&value, insertedKey);
auto it = trait.find(static_cast<const void*>(&value), insertedKey);
REQUIRE(!it.isNull());

if constexpr (std::equality_comparable<K>)
Expand Down

0 comments on commit d8ab876

Please sign in to comment.