Skip to content

Commit

Permalink
Replace EXPECT_EQ for pointer compare
Browse files Browse the repository at this point in the history
  • Loading branch information
pnoltes committed Dec 31, 2023
1 parent 1f8dea8 commit 1a67dab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/utils/gtest/src/DeprecatedHashmapTestSuite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ TEST_F(DeprecatedHashmapTestSuite, create){
EXPECT_TRUE(defaultMap != nullptr);
EXPECT_EQ(0, defaultMap->size);
// This fails on windows due to dllimport providing a proxy for exported functions.
EXPECT_EQ(hashMap_equals, defaultMap->equalsKey);
EXPECT_EQ(hashMap_equals, defaultMap->equalsValue);
EXPECT_EQ(hashMap_hashCode, defaultMap->hashKey);
EXPECT_EQ(hashMap_hashCode, defaultMap->hashValue);
EXPECT_TRUE(hashMap_equals == defaultMap->equalsKey);
EXPECT_TRUE(hashMap_equals == defaultMap->equalsValue);
EXPECT_TRUE(hashMap_hashCode == defaultMap->hashKey);
EXPECT_TRUE(hashMap_hashCode == defaultMap->hashValue);
}

TEST_F(DeprecatedHashmapTestSuite, size){
Expand Down

0 comments on commit 1a67dab

Please sign in to comment.