File: test_header_only_2.cpp

package info (click to toggle)
pugixml 1.14-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,052 kB
  • sloc: cpp: 24,068; xml: 2,151; makefile: 80; python: 44; sh: 9
file content (21 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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_2)
{
	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
}