summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_write.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test_write.cpp b/tests/test_write.cpp
index 465d111..449ad97 100644
--- a/tests/test_write.cpp
+++ b/tests/test_write.cpp
@@ -408,3 +408,22 @@ TEST(write_print_stream_empty_wide)
xml_node().print(oss);
}
#endif
+
+TEST(write_stackless)
+{
+ unsigned int count = 20000;
+ std::basic_string<pugi::char_t> data;
+
+ for (unsigned int i = 0; i < count; ++i)
+ data += "<a>";
+
+ data += "text";
+
+ for (unsigned int i = 0; i < count; ++i)
+ data += "</a>";
+
+ xml_document doc;
+ CHECK(doc.load(data.c_str()));
+
+ CHECK_NODE(doc, data.c_str());
+}