dinghao188 před 3 roky
rodič
revize
3e94e4a047
1 změnil soubory, kde provedl 8 přidání a 2 odebrání
  1. 8 2
      xmltest.cpp

+ 8 - 2
xmltest.cpp

@@ -2147,8 +2147,14 @@ int main( int argc, const char ** argv )
 		// successful loads should clear the error
 		XMLDocument doc;
 		XMLTest( "Should be no error initially", false, doc.Error() );
-		doc.LoadFile( "resources/xmltest-5330.xml" );
-		XMLTest( "parse errors occur - should fail", true, doc.Error() );
+		doc.LoadFile( "resources/no-such-file.xml" );
+		XMLTest( "No such file - should fail", true, doc.Error() );
+                
+                doc.LoadFile( "resources/xmltest-5330.xml" );
+                XMLTest( "parse errors occur - should fail", true, doc.Error() );
+
+		doc.LoadFile( "resources/dream.xml" );
+		XMLTest( "Error should be cleared", false, doc.Error() );
 
 		doc.LoadFile( "resources/dream.xml" );
 		XMLTest( "Error should be cleared", false, doc.Error() );