mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-23 14:45:38 +00:00
22 lines
412 B
C++
22 lines
412 B
C++
|
#define PUGIXML_HEADER_ONLY
|
||
|
#define pugi pugih
|
||
|
|
||
|
#include "test.hpp"
|
||
|
|
||
|
// Check header guards
|
||
|
#include "../src/pugixml.hpp"
|
||
|
#include "../src/pugixml.hpp"
|
||
|
|
||
|
using namespace pugi;
|
||
|
|
||
|
TEST(header_only_1)
|
||
|
{
|
||
|
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
|
||
|
}
|