summaryrefslogtreecommitdiff
path: root/tests/test_write.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_write.cpp')
-rw-r--r--tests/test_write.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_write.cpp b/tests/test_write.cpp
index c549a82..4237739 100644
--- a/tests/test_write.cpp
+++ b/tests/test_write.cpp
@@ -366,3 +366,23 @@ TEST(write_no_name_attribute)
CHECK_NODE(doc, STR("<root :anonymous=\"\" />"));
}
+
+TEST(write_print_empty)
+{
+ test_writer writer;
+ xml_node().print(writer);
+}
+
+#ifndef PUGIXML_NO_STL
+TEST(write_print_stream_empty)
+{
+ std::ostringstream oss;
+ xml_node().print(oss);
+}
+
+TEST(write_print_stream_empty_wide)
+{
+ std::basic_ostringstream<wchar_t> oss;
+ xml_node().print(oss);
+}
+#endif