提交 260dc0e7 编写于 作者: 小代码2016's avatar 小代码2016

编辑节点

上级 3bddc86b
#include <cstdio>
#include <cstring>
#include "doctest/doctest.h"
#include "tinyxml2.h"
#include "spdlog/spdlog.h"
#include "khl_xml_config/khl_xml_config.hpp"
TEST_CASE("tinyxml2_edit_node")
{
std::string simpleXmlPath;
tinyxml2::XMLDocument doc;
tinyxml2::XMLError xmlError;
/**
* 查找节点
*/
SUBCASE("add_node")
{
simpleXmlPath = getXmlPath("/data/simple.xml");
xmlError = doc.LoadFile(simpleXmlPath.c_str());
CHECK(tinyxml2::XMLError::XML_SUCCESS == xmlError);
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册