Branch: Tag:

2018-04-03

2018-04-03 13:11:56 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Testsuite: Fixed some error messages.

205:    else {    report_test_failure( "Expected error", cb, args, st );    if( throw_error ) { -  error( "Expected error but none was thrown." ); +  error( "Expected error but none was thrown.\n" );    }    }   }
251:    if( err ) {    throw( err );    } else { -  error( "Condition failed" ); +  error( "Condition failed.\n" );    }    }    } else {
273:    report_test_failure( sprintf ("expected non-zero, got %O", res),    cb, args, st);    if( throw_error ) { -  error( sprintf ("expected non-zero, got %O", res) ); +  error( sprintf ("expected non-zero, got %O\n", res) );    }    } else {    report_test_ok( err, cb, args, st );
302:    if( res ) {    report_test_failure( sprintf("expected zero, got %O",res), cb, args, st);    if( throw_error ) { -  error( sprintf("expected zero, got %O",res) ); +  error( sprintf("expected zero, got %O\n", res) );    }    }    else
348:    throw( err );    }    } else if( !equal( res, m )) { -  string message = sprintf("Got %O, expected %O", res,m); +  string message = sprintf("Got %O, expected %O.\n", res,m);    report_test_failure( message, cb, args, st );    if( throw_error ) {    error( message );
371:    throw( err );    }    } else if( equal( res, m )) { -  string message = sprintf("Got %O, expected different value", res); +  string message = sprintf("Got %O, expected different value.\n", res);    report_test_failure( message, cb, args, st );    if( throw_error ) {    error( message );