From fc602fd37554f5e2d58fcee71a58e380d23d22d4 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Thu, 29 Oct 2009 07:17:30 +0000 Subject: tests: Supported all pugixml compilation modes git-svn-id: http://pugixml.googlecode.com/svn/trunk@191 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_write.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests/test_write.cpp') diff --git a/tests/test_write.cpp b/tests/test_write.cpp index 81e945c..8981a39 100644 --- a/tests/test_write.cpp +++ b/tests/test_write.cpp @@ -1,6 +1,7 @@ #include "common.hpp" #include +#include TEST_XML(write_simple, "text") { @@ -72,6 +73,7 @@ TEST_XML(write_print_writer, "") CHECK(writer.contents == "\n"); } +#ifndef PUGIXML_NO_STL TEST_XML(write_print_stream, "") { std::ostringstream oss; @@ -79,14 +81,15 @@ TEST_XML(write_print_stream, "") CHECK(oss.str() == "\n"); } +#endif TEST_XML(write_huge_chunk, "") { std::string name(10000, 'n'); doc.child("node").set_name(name.c_str()); - std::ostringstream oss; - doc.print(oss); + test_writer writer; + doc.print(writer); - CHECK(oss.str() == "<" + name + " />\n"); + CHECK(writer.contents == "<" + name + " />\n"); } -- cgit v1.2.3