mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 03:02:29 +00:00
feat(xml): add XML functions
This commit is contained in:
parent
125ffec928
commit
4e43886e37
142 changed files with 68501 additions and 0 deletions
11
test/XML.cpp
Normal file
11
test/XML.cpp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include "common/XML.hpp"
|
||||
#include "test/Test.hpp"
|
||||
#include <storm/String.hpp>
|
||||
|
||||
TEST_CASE("XMLTree_Load", "[xml]") {
|
||||
SECTION("loads new tree") {
|
||||
auto xml = "<Root><Child1></Child1><Child2></Child2></Root>";
|
||||
auto tree = XMLTree_Load(xml, SStrLen(xml));
|
||||
REQUIRE(tree);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue