summaryrefslogtreecommitdiff
path: root/tests/test_header_only.cpp
blob: f1990ddec0e2f97fad9cc731ee0a1252e8450ec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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());
}