diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-01-16 21:48:50 -0800 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-01-16 21:48:50 -0800 |
commit | e5ecbd63ce75de0a8f1473cbe0c1f9eea657dd02 (patch) | |
tree | 8ace0fd644cc3c8274c1e74f2b0743d21a957441 /tests/test_header_only.cpp | |
parent | 93c3ab46494f35c390b40220519d83634e4e347f (diff) | |
parent | 8e95f0d88947631162f5ed1fc5427b414425604b (diff) |
Merge branch 'master' into compact
Diffstat (limited to 'tests/test_header_only.cpp')
-rw-r--r-- | tests/test_header_only.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_header_only.cpp b/tests/test_header_only.cpp new file mode 100644 index 0000000..f1990dd --- /dev/null +++ b/tests/test_header_only.cpp @@ -0,0 +1,16 @@ +#define PUGIXML_HEADER_ONLY +#define pugi pugih + +#include "common.hpp" + +// Check header guards +#include "../src/pugixml.hpp" +#include "../src/pugixml.hpp" + +TEST(header_only) +{ + xml_document doc; + CHECK(doc.load_string(STR("<node/>"))); + CHECK_STRING(doc.first_child().name(), STR("node")); + CHECK(doc.first_child() == doc.select_node(STR("//*")).node()); +} |