From 0237fb466e36bdfc82c5e9dab1791f546f7e2979 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Fri, 23 Mar 2012 03:25:03 +0000 Subject: tests: Added tests for read-only xml_text operations git-svn-id: http://pugixml.googlecode.com/svn/trunk@875 99668b35-9821-0410-8761-19e4c4f06640 --- tests/helpers.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/helpers.hpp') 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 static void generic_rel_ops_test(T obj1, T obj2) CHECK(!(obj1 >= obj2)); } +template static void generic_empty_test(const T& obj) +{ + T null; + + CHECK(null.empty()); + CHECK(!obj.empty()); +} + #endif -- cgit v1.2.3