mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 11:12:29 +00:00
12 lines
303 B
C++
12 lines
303 B
C++
|
|
#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);
|
||
|
|
}
|
||
|
|
}
|