summaryrefslogtreecommitdiff
path: root/tests/helpers.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/helpers.hpp')
-rw-r--r--tests/helpers.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/helpers.hpp b/tests/helpers.hpp
index 172f231..439f8ea 100644
--- a/tests/helpers.hpp
+++ b/tests/helpers.hpp
@@ -103,4 +103,12 @@ template <typename T> static void generic_rel_ops_test(T obj1, T obj2)
CHECK(!(obj1 >= obj2));
}
+template <typename T> static void generic_empty_test(const T& obj)
+{
+ T null;
+
+ CHECK(null.empty());
+ CHECK(!obj.empty());
+}
+
#endif