diff --git a/libs/tuple/test/tuple.cpp b/libs/tuple/test/tuple.cpp index 05569740..49b5feee 100644 --- a/libs/tuple/test/tuple.cpp +++ b/libs/tuple/test/tuple.cpp @@ -222,11 +222,8 @@ namespace testspr { TESTSPR_BOTH_ASSERT(!sprout::tuples::is_tuple::value); // sprout::to_hash, sprout::hash - { - typedef sprout::tuples::tuple type; - TESTSPR_BOTH_ASSERT(sprout::to_hash(type(1, 2)) == sprout::hash()(type(1, 2))); - TESTSPR_BOTH_ASSERT(sprout::to_hash(type(1, 2)) != sprout::to_hash(type())); - } + TESTSPR_BOTH_ASSERT(sprout::to_hash(tup1) == sprout::hash()(tup1)); + TESTSPR_BOTH_ASSERT(sprout::to_hash(tup1) != sprout::to_hash(sprout::tuples::tuple())); } } } // namespace testspr diff --git a/libs/variant/test/variant.cpp b/libs/variant/test/variant.cpp index 8e690ff2..3e7a102f 100644 --- a/libs/variant/test/variant.cpp +++ b/libs/variant/test/variant.cpp @@ -219,11 +219,8 @@ namespace testspr { TESTSPR_BOTH_ASSERT(!sprout::is_variant::value); // sprout::to_hash, sprout::hash - { - typedef sprout::variant type; - TESTSPR_BOTH_ASSERT(sprout::to_hash(type(1)) == sprout::hash()(type(1))); - TESTSPR_BOTH_ASSERT(sprout::to_hash(type(1)) != sprout::to_hash(type())); - } + TESTSPR_BOTH_ASSERT(sprout::to_hash(var1) == sprout::hash()(var1)); + TESTSPR_BOTH_ASSERT(sprout::to_hash(var1) != sprout::to_hash(sprout::variant())); } } } // namespace testspr