diff options
author | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-03-23 03:25:03 +0000 |
---|---|---|
committer | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-03-23 03:25:03 +0000 |
commit | 0237fb466e36bdfc82c5e9dab1791f546f7e2979 (patch) | |
tree | a6897826c630597dd3f68e3f76a6e4eca116c148 /tests/helpers.hpp | |
parent | 43fac19d81a843789e276d31b032b5511accb68c (diff) |
tests: Added tests for read-only xml_text operations
git-svn-id: http://pugixml.googlecode.com/svn/trunk@875 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/helpers.hpp')
-rw-r--r-- | tests/helpers.hpp | 8 |
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 |