|
|
@@ -8,10 +8,10 @@ template<typename Type>
|
|
|
using another_family = entt::family<Type, struct another_family_type>;
|
|
|
|
|
|
TEST(Family, Functionalities) {
|
|
|
- auto t1 = a_family<int>::type;
|
|
|
- auto t2 = a_family<int>::type;
|
|
|
- auto t3 = a_family<char>::type;
|
|
|
- auto t4 = another_family<double>::type;
|
|
|
+ auto t1 = a_family<int>::type();
|
|
|
+ auto t2 = a_family<int>::type();
|
|
|
+ auto t3 = a_family<char>::type();
|
|
|
+ auto t4 = another_family<double>::type();
|
|
|
|
|
|
ASSERT_EQ(t1, t2);
|
|
|
ASSERT_NE(t1, t3);
|
|
|
@@ -19,7 +19,7 @@ TEST(Family, Functionalities) {
|
|
|
}
|
|
|
|
|
|
TEST(Family, Uniqueness) {
|
|
|
- ASSERT_NE(a_family<int>::type, a_family<int &>::type);
|
|
|
- ASSERT_NE(a_family<int>::type, a_family<int &&>::type);
|
|
|
- ASSERT_NE(a_family<int>::type, a_family<const int &>::type);
|
|
|
+ ASSERT_NE(a_family<int>::type(), a_family<int &>::type());
|
|
|
+ ASSERT_NE(a_family<int>::type(), a_family<int &&>::type());
|
|
|
+ ASSERT_NE(a_family<int>::type(), a_family<const int &>::type());
|
|
|
}
|