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 data; + + for (unsigned int i = 0; i < count; ++i) + data += ""; + + data += "text"; + + for (unsigned int i = 0; i < count; ++i) + data += ""; + + xml_document doc; + CHECK(doc.load(data.c_str())); + + CHECK_NODE(doc, data.c_str()); +}