2015-01-09 19:29:23 -08:00
|
|
|
#define PUGIXML_HEADER_ONLY
|
|
|
|
#define pugi pugih
|
|
|
|
|
2017-06-22 20:41:08 -07:00
|
|
|
#include "test.hpp"
|
2015-01-09 19:29:23 -08:00
|
|
|
|
|
|
|
// Check header guards
|
|
|
|
#include "../src/pugixml.hpp"
|
|
|
|
#include "../src/pugixml.hpp"
|
|
|
|
|
2017-06-22 20:41:08 -07:00
|
|
|
using namespace pugi;
|
|
|
|
|
2015-10-06 07:26:24 -07:00
|
|
|
TEST(header_only_2)
|
2015-01-09 19:29:23 -08:00
|
|
|
{
|
|
|
|
xml_document doc;
|
|
|
|
CHECK(doc.load_string(STR("<node/>")));
|
|
|
|
CHECK_STRING(doc.first_child().name(), STR("node"));
|
2015-03-21 00:14:53 -07:00
|
|
|
|
|
|
|
#ifndef PUGIXML_NO_XPATH
|
2015-01-09 19:29:23 -08:00
|
|
|
CHECK(doc.first_child() == doc.select_node(STR("//*")).node());
|
2015-03-21 00:14:53 -07:00
|
|
|
#endif
|
2015-01-09 19:29:23 -08:00
|
|
|
}
|