llpc/unittests/util/testMetroHash.cpp
TEST(MetroHashTest, CompactZero) {
  Hash hash = {};
  EXPECT_EQ(std::hash<Hash>{}(hash), 0u);

  hash.qwords[0] = 42;
  EXPECT_NE(std::hash<Hash>{}(hash), 0u);
}
// Check that std::hash of a value-initialized MetroHash is 0.
Check that std::hash of a value-initialized MetroHash is 0.
Check that std :: hash of a value - initialized MetroHash is 0 .
TEST(MetroHashTest, CompactZero) {
  Hash hash = {};
  EXPECT_EQ(std::hash<Hash>{}(hash), 0u);
  hash.qwords[0] = 42;
  EXPECT_NE(std::hash<Hash>{}(hash), 0u);
}
TEST ( MetroHashTest , CompactZero ) { Hash hash = { } ; EXPECT_EQ ( std :: hash < Hash > { } ( hash ) , 0u ) ; hash . qwords [ 0 ] = 42 ; EXPECT_NE ( std :: hash < Hash > { } ( hash ) , 0u ) ; }
Check that std::hash of a value-initialized MetroHash is 0.
Check that std :: hash of a value - initialized MetroHash is 0 .