From 0fa8299d99c568b33e6f2a14c120ef59d5c33b54 Mon Sep 17 00:00:00 2001 From: "Lee Thomason (grinliz)" Date: Sat, 8 Sep 2012 21:53:47 -0700 Subject: [PATCH] whitespace tests and review --- xmltest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xmltest.cpp b/xmltest.cpp index 3144384..3e7c123 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -965,6 +965,13 @@ int main( int /*argc*/, const char ** /*argv*/ ) XMLTest( "Whitespace collapse", "This is ' text '", parent->GetText() ); } } + + { + const char* xml = " "; + XMLDocument doc( true, COLLAPSE_WHITESPACE ); + doc.Parse( xml ); + XMLTest( "Whitespace all space", true, 0 == doc.FirstChildElement()->FirstChild() ); + } // ----------- Performance tracking -------------- {