mirror of
https://github.com/leethomason/tinyxml2.git
synced 2026-07-21 19:23:00 +04:00
test checks
This commit is contained in:
+5
-3
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user