fix xml.tostring

This commit is contained in:
MihailRis 2026-09-27 16:14:14 +03:00
parent bac0d43fd7
commit 61af506f4c
3 changed files with 47 additions and 1 deletions

View file

@ -22,3 +22,9 @@ TEST(XML, VCM) {
throw err;
}
}
TEST(XML, TWO_WAYS) {
auto src = "<test><sub>test</sub></test>";
auto document = xml::parse("<test>", src);
ASSERT_EQ(src, xml::stringify(*document->getRoot(), false));
}