1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-21 19:23:00 +04:00

Merge branch 'master' of github.com:leethomason/tinyxml2

This commit is contained in:
Lee Thomason
2026-05-23 17:16:30 -07:00
+5 -3
View File
@@ -45,13 +45,15 @@ bool XMLTest (const char* testString, const char* expected, const char* found, b
printf (" %s\n", testString); printf (" %s\n", testString);
} }
else { else {
const char* expectedStr = expected ? expected : "(null)";
const char* foundStr = found ? found : "(null)";
if ( extraNL ) { if ( extraNL ) {
printf( " %s\n", testString ); printf( " %s\n", testString );
printf( "%s\n", expected ); printf( "%s\n", expectedStr );
printf( "%s\n", found ); printf( "%s\n", foundStr );
} }
else { else {
printf (" %s [%s][%s]\n", testString, expected, found); printf (" %s [%s][%s]\n", testString, expectedStr, foundStr);
} }
} }