Skip to content

Commit 1a67dab

Browse files
committed
Replace EXPECT_EQ for pointer compare
1 parent 1f8dea8 commit 1a67dab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libs/utils/gtest/src/DeprecatedHashmapTestSuite.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ TEST_F(DeprecatedHashmapTestSuite, create){
102102
EXPECT_TRUE(defaultMap != nullptr);
103103
EXPECT_EQ(0, defaultMap->size);
104104
// This fails on windows due to dllimport providing a proxy for exported functions.
105-
EXPECT_EQ(hashMap_equals, defaultMap->equalsKey);
106-
EXPECT_EQ(hashMap_equals, defaultMap->equalsValue);
107-
EXPECT_EQ(hashMap_hashCode, defaultMap->hashKey);
108-
EXPECT_EQ(hashMap_hashCode, defaultMap->hashValue);
105+
EXPECT_TRUE(hashMap_equals == defaultMap->equalsKey);
106+
EXPECT_TRUE(hashMap_equals == defaultMap->equalsValue);
107+
EXPECT_TRUE(hashMap_hashCode == defaultMap->hashKey);
108+
EXPECT_TRUE(hashMap_hashCode == defaultMap->hashValue);
109109
}
110110

111111
TEST_F(DeprecatedHashmapTestSuite, size){

0 commit comments

Comments
 (0)