42TEST(HashHelpers, isHashEnabled)
44 EXPECT_TRUE(stl_helpers::is_hash_enabled<int>);
45 EXPECT_TRUE(stl_helpers::is_hash_enabled<long>);
46 EXPECT_TRUE(stl_helpers::is_hash_enabled<double>);
47 EXPECT_TRUE(stl_helpers::is_hash_enabled<std::string>);
48 EXPECT_TRUE(stl_helpers::is_hash_enabled<void*>);
50 EXPECT_TRUE(stl_helpers::is_hash_enabled<vector_t>);
51 using tuple_t = std::tuple<int, bool,
int**, std::string(*)(float)>;
52 EXPECT_TRUE(stl_helpers::is_hash_enabled<tuple_t>);
54 EXPECT_TRUE((stl_helpers::is_hash_enabled<
55 std::unordered_map<tuple_t, vector_t>>));
79TEST(HashHelpers, hashVector)
82 auto hashVal = stl_helpers::hash_value(
v);
84 EXPECT_EQ(hashVal, hashFunc(
v));