From 4f6ecee14cbbf72009ef1c7c27007773c9efa385 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Mon, 2 Aug 2010 20:16:53 +0000 Subject: tests: More miscellaneous tests git-svn-id: http://pugixml.googlecode.com/svn/trunk@619 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_write.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tests/test_write.cpp') 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("")); } + +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 oss; + xml_node().print(oss); +} +#endif -- cgit v1.2.3