commit | 0fa8299d99c568b33e6f2a14c120ef59d5c33b54 | [log] [tgz] |
---|---|---|
author | Lee Thomason (grinliz) <leethomason@gmail.com> | Sat Sep 08 21:53:47 2012 -0700 |
committer | Lee Thomason (grinliz) <leethomason@gmail.com> | Sat Sep 08 21:53:47 2012 -0700 |
tree | 6414f5d505b35053e2296b9a7442e49be57f96cb | |
parent | 62d1c5a739bd1ae77b6c8aaeb2e4101474f4c17d [diff] [blame] |
whitespace tests and review
diff --git a/xmltest.cpp b/xmltest.cpp index 3144384..3e7c123 100644 --- a/xmltest.cpp +++ b/xmltest.cpp
@@ -965,6 +965,13 @@ XMLTest( "Whitespace collapse", "This is ' text '", parent->GetText() ); } } + + { + const char* xml = "<element> </element>"; + XMLDocument doc( true, COLLAPSE_WHITESPACE ); + doc.Parse( xml ); + XMLTest( "Whitespace all space", true, 0 == doc.FirstChildElement()->FirstChild() ); + } // ----------- Performance tracking -------------- {