int main() { plan(20); test_uints(); test_ints(); test_bools(); test_floats(); test_doubles(); test_nils(); test_strls(); test_binls(); test_strs(); test_bins(); test_arrays(); test_maps(); test_next_on_arrays(); test_next_on_maps(); test_compare_uints(); test_format(); test_mp_print(); test_mp_check(); test_numbers(); test_overflow(); return check_plan(); }
int main( int argc , char * argv[] ) { int np_max = 256 ; int box[3][2] = { { 0 , 64 } , { 0 , 64 } , { 0 , 64 } }; int np = 0 ; switch( argc ) { case 3: sscanf(argv[1],"%d",&np); sscanf(argv[2],"%dx%dx%d",& box[0][1] , & box[1][1] , & box[2][1] ); if ( 0 < np ) { test_box( (const int (*)[2]) box , np ); } if ( 0 < np ) { test_maps( (const int (*)[2]) box , np ); } break ; default: for ( np = 1 ; np <= np_max ; ++np ) { test_box( (const int (*)[2]) box , np ); test_maps( (const int (*)[2]) box , np ); } break ; } return 0 ; }
int main() { OFSTREAM out(NTEXT("debug-log")); OFSTREAM err(NTEXT("err.log")); // Debug::setOutputStream( out ); // Debug::setErrStream( err ); Debug::setCurrentModule( NTEXT("SERTEST") ); ::srand(::time(NULL)); test_maps(); test_serializable(); return 0; }
int main() { plan(15); test_uints(); test_ints(); test_bools(); test_floats(); test_doubles(); test_nils(); test_strls(); test_binls(); test_strs(); test_bins(); test_arrays(); test_maps(); test_next_on_arrays(); test_next_on_maps(); test_compare_uints(); return check_plan(); }