Disabled external gits
This commit is contained in:
16
cs440-acg/ext/pugixml/tests/test_header_only.cpp
Normal file
16
cs440-acg/ext/pugixml/tests/test_header_only.cpp
Normal file
@@ -0,0 +1,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());
|
||||
}
|
||||
Reference in New Issue
Block a user