mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
a89e5a4784
Addition of the new serialiser (the start anyway). Addition of regression test system. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@249 b45a01b8-16f6-495d-af2f-9b41ad6348cc
41 lines
506 B
C
41 lines
506 B
C
|
|
#include "utest.h"
|
|
|
|
#include <string.h>
|
|
|
|
/* must define the global variables */
|
|
INITTEST();
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
int a = 2;
|
|
int b = 3;
|
|
int c = 2;
|
|
|
|
CHECK( a == c );
|
|
|
|
REPORT( "Initial Tests");
|
|
|
|
CHECK( (0 == strcmp("123", "123")) );
|
|
|
|
REPORT( "Successful Tests");
|
|
|
|
CHECK( a == b );
|
|
CHECK( (0 == strcmp("123", "12345")) );
|
|
|
|
REPORT( "Failed Tests" );
|
|
|
|
CHECK( 1 );
|
|
CHECK( a == c );
|
|
|
|
REPORT( "Later Successful Tests");
|
|
|
|
|
|
FINALREPORT( "Example Tests" );
|
|
|
|
return TESTRESULT();
|
|
}
|
|
|
|
|
|
|