Skip to content

Commit

Permalink
fixing API test
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed May 3, 2023
1 parent ff28efc commit 611849c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/FrogAPI.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2967,7 +2967,19 @@ void FrogAPI::run_api_tests( const string& testName ){
}
string s1 = Frogtostring( ss.str() );
string s2 = Frogtostringfromfile( testName );
if ( s1 != s2 ){
if ( options.doXMLout ){
if ( folia_diff( s1, s2 ) ){
*outS << "test 1 FoLiA OK!" << endl;
}
else {
*outS << "FAILED FoLiA test 1 :" << testName << endl;
*outS << "test 1 STRING 1 " << endl;
*outS << s1 << endl;
*outS << "test 1 STRING 2 " << endl;
*outS << s2 << endl;
}
}
else if ( s1 != s2 ){
*outS << "FAILED test 1 :" << testName << endl;
*outS << "test 1 STRING 1 " << endl;
*outS << s1 << endl;
Expand Down

0 comments on commit 611849c

Please sign in to comment.