summaryrefslogtreecommitdiff
path: root/tests/test_write.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-02 20:16:53 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-02 20:16:53 +0000
commit4f6ecee14cbbf72009ef1c7c27007773c9efa385 (patch)
treeab93fe1d69ab4150c4ab9d486441dc11c8574f26 /tests/test_write.cpp
parent958ee27e7fafb0bc5702ac3959cebaf18dce68e0 (diff)
tests: More miscellaneous tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@619 99668b35-9821-0410-8761-19e4c4f06640
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