mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-29 23:42:13 +08:00
ce974094ac
Rename PAGE_SIZE to page_size to avoid define conflict with Android SDK. Minor fixes in several tests.
20 lines
389 B
C++
20 lines
389 B
C++
#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"));
|
|
|
|
#ifndef PUGIXML_NO_XPATH
|
|
CHECK(doc.first_child() == doc.select_node(STR("//*")).node());
|
|
#endif
|
|
}
|