From 630be2edb3110b9627718bd7b735348e4940fdd4 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 26 Sep 2010 19:01:36 +0000 Subject: tests: Added node_doctype and parse_doctype tests git-svn-id: http://pugixml.googlecode.com/svn/trunk@757 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_write.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/test_write.cpp') diff --git a/tests/test_write.cpp b/tests/test_write.cpp index 4237739..0904b21 100644 --- a/tests/test_write.cpp +++ b/tests/test_write.cpp @@ -63,6 +63,12 @@ TEST_XML_FLAGS(write_declaration, "", parse_default | parse CHECK_NODE_EX(doc, STR("\n"), STR(""), 0); } +TEST_XML_FLAGS(write_doctype, "", parse_default | parse_doctype) +{ + CHECK_NODE(doc, STR("")); + CHECK_NODE_EX(doc, STR("\n"), STR(""), 0); +} + TEST_XML(write_escape, "text") { doc.child(STR("node")).attribute(STR("attr")) = STR("<>'\"&\x04\r\n\t"); -- cgit v1.2.3