head	1.3;
access
	monica
	thoth;
symbols;
locks
	monica:1.3; strict;
comment	@// @;


1.3
date	94.10.06.01.07.46;	author monica;	state Exp;
branches;
next	1.2;

1.2
date	94.08.17.04.12.11;	author monica;	state Exp;
branches;
next	1.1;

1.1
date	94.02.18.18.39.08;	author thoth;	state Exp;
branches;
next	;


desc
@Test of array constructor for continuous pointsets.
@


1.3
log
@ updated for DOS file naming
@
text
@// Emacs: -*- C++ -*-
static char rcsid[] = "$Id: test200.c,v 1.2 1994/08/17 04:12:11 monica Exp monica $";

//
// $Log: test200.c,v $
// Revision 1.2  1994/08/17  04:12:11  monica
// added int main & return 0
//
// * Revision 1.1  1994/02/18  18:39:08  thoth
// * Initial revision
// *

#include <stdlib.h>
 
#include "test.h"

#include "pt-util.h"
#include "gen-test.h"

int main(int argc, char**argv)
{
    unsigned size;
    size = (argc<2) ? 2 : atoi(argv[1]);
    
    unsigned l1, l2;
    l1 = (argc<3) ? 40 : atoi(argv[2]);
    l2 = (argc<4) ? 40 : atoi(argv[3]);
    
    IA_Point<double>	*a1 = new IA_Point<double>[l1];
    IA_Point<double>	*a2 = new IA_Point<double>[l2];
    
    cout << "ready to fill the arrays\n" << flush;
    
    unsigned i;
    for (i=0; i<l1; i++)
	a1[i] = make_random_Fpoint(size, 0, 9 );
    cout << "array 1 filled\n" << flush;
    for (i=0; i<l2; i++)
	a2[i] = make_random_Fpoint(size, 0, 9 );
    cout << "array 2 filled\n" << flush;
    
    IA_Set<IA_Point<double> >	ps1(size, a1,l1);
    IA_Set<IA_Point<double> >	ps2(size, a2,l2);
    
    SortDoublePointArray(a1, l1);
    cout << "array 1 sorted\n" << flush;
    SortDoublePointArray(a2, l2);
    cout << "array 2 sorted\n" << flush;
    
    test_arr_ps(ps1, a1, l1);
    cout << "ips 1 tested\n"<< flush;
    test_arr_ps(ps2, a2, l2);
    cout << "ips 2 tested\n"<< flush;

    return 0;

}
@


1.2
log
@added int main & return 0
@
text
@d2 1
a2 1
static char rcsid[] = "$Id: test200.c,v 1.1 1994/02/18 18:39:08 thoth Exp monica $";
d6 3
d17 2
a18 2
#include "point-utils.h"
#include "generic-tests.h"
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
static char rcsid[] = "$Id: test004.c,v 1.7 92/12/16 14:50:10 thoth Exp Locker: thoth $";
d5 4
a8 1
// $Log:	test004.c,v $
d11 2
a13 1
#include "FloatPointSet.h"
d26 2
a27 2
    IA_FloatPoint	*a1 = new IA_FloatPoint[l1];
    IA_FloatPoint	*a2 = new IA_FloatPoint[l2];
d39 2
a40 2
    IA_FloatPointSet	ps1(size, a1,l1);
    IA_FloatPointSet	ps2(size, a2,l2);
d42 1
a42 1
    SortFloatPointArray(a1, l1);
d44 1
a44 1
    SortFloatPointArray(a2, l2);
d51 3
@
