From 7757503d72c7ce61e562fd5a1fd19ae90472410b Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sat, 10 Sep 2011 03:05:29 +0000 Subject: Added format_no_escapes flag git-svn-id: http://pugixml.googlecode.com/svn/trunk@819 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_write.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/test_write.cpp b/tests/test_write.cpp index 3871bf6..094bf59 100644 --- a/tests/test_write.cpp +++ b/tests/test_write.cpp @@ -97,6 +97,14 @@ TEST_XML(write_escape_unicode, "") #endif } +TEST_XML(write_no_escapes, "text") +{ + doc.child(STR("node")).attribute(STR("attr")) = STR("<>'\"&\x04\r\n\t"); + doc.child(STR("node")).first_child().set_value(STR("<>'\"&\x04\r\n\t")); + + CHECK_NODE_EX(doc, STR("'\"&\x04\r\n\t\"><>'\"&\x04\r\n\t"), STR(""), format_raw | format_no_escapes); +} + struct test_writer: xml_writer { std::basic_string contents; -- cgit v1.2.3