head	1.12;
access
	monica
	thoth
	fjsoria;
symbols
	Eglin_alpha_1:1.9;
locks
	monica:1.12; strict;
comment	@// @;


1.12
date	94.11.21.20.17.28;	author thoth;	state Exp;
branches;
next	1.11;

1.11
date	94.08.21.15.21.38;	author monica;	state Exp;
branches;
next	1.10;

1.10
date	93.07.15.11.49.27;	author thoth;	state Exp;
branches;
next	1.9;

1.9
date	92.12.16.14.48.31;	author thoth;	state Exp;
branches;
next	1.8;

1.8
date	92.11.11.12.12.33;	author thoth;	state Exp;
branches;
next	1.7;

1.7
date	92.11.04.12.02.54;	author thoth;	state Exp;
branches;
next	1.6;

1.6
date	92.10.21.15.00.04;	author thoth;	state Exp;
branches;
next	1.5;

1.5
date	92.09.20.17.42.40;	author thoth;	state Exp;
branches;
next	1.4;

1.4
date	92.09.07.13.25.22;	author thoth;	state Exp;
branches;
next	1.3;

1.3
date	92.08.25.15.38.28;	author thoth;	state Exp;
branches;
next	1.2;

1.2
date	92.08.23.13.30.29;	author thoth;	state Exp;
branches;
next	1.1;

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


desc
@A module filled with generic IntPointSet tests.
@


1.12
log
@Added tests for reflection through origin (operator-() )
@
text
@// Emacs: -*- C++ -*-

// 
// $Log: gen-test.h,v $
// Revision 1.11  1994/08/21  15:21:38  monica
// updated for file name shortening (DblPoint, etc)
//
// Revision 1.10  1993/07/15  11:49:27  thoth
// IA_ prefix for most classes now necessary.
//
// Revision 1.9  92/12/16  14:48:31  thoth
// conversion to IA_ mostly complete
// 
// Revision 1.8  92/11/11  12:12:33  thoth
// test of another restriction utility.
// 
// Revision 1.7  92/11/04  12:02:54  thoth
// test of new image extension support routines.
// 
// Revision 1.6  92/10/21  15:00:04  thoth
// added test for image restriction utility.
// 
// Revision 1.5  92/09/20  17:42:40  thoth
// added minkowski test.
// 
// Revision 1.4  92/09/07  13:25:22  thoth
// new test for the IntPoint array constructor
// 
// Revision 1.3  92/08/25  15:38:28  thoth
// new test for translation verification
// 
// Revision 1.2  92/08/23  13:30:29  thoth
// CFrontified version
// 
//

#ifndef generic_tests_h_
#define generic_tests_h_

/* #include "with-ia-pointset.h" */

#include "IntPS.h"
#include "DblPS.h"
#include "Set.h"

void test_union(IA_Set<IA_Point<int> > a, IA_Set<IA_Point<int> > b, IA_Set<IA_Point<int> > ab);
void test_intersection(IA_Set<IA_Point<int> > a, IA_Set<IA_Point<int> > b, IA_Set<IA_Point<int> > ab);
void test_XOR(IA_Set<IA_Point<int> > a, IA_Set<IA_Point<int> > b, IA_Set<IA_Point<int> > ab);
void test_minus(IA_Set<IA_Point<int> > a, IA_Set<IA_Point<int> > b, IA_Set<IA_Point<int> > ab);

void test_restriction(IA_Set<IA_Point<int> > a, IA_Set<IA_Point<int> > b);
void test_dualrestriction(IA_Set<IA_Point<int> > a, IA_Set<IA_Point<int> > b);
void test_extension(IA_Set<IA_Point<int> > a, IA_Set<IA_Point<int> > b);

void test_offset(IA_Set<IA_Point<int> > a, IA_Point<int> x, IA_Set<IA_Point<int> > ax);
void test_minkowski(IA_Set<IA_Point<int> > a, IA_Set<IA_Point<int> > b, IA_Set<IA_Point<int> > ab);
void test_oreflect(IA_Set<IA_Point<int> > a, IA_Set<IA_Point<int> > ma);

void test_arr_ps(IA_Set<IA_Point<int> > ps, const IA_Point<int> *arr, unsigned len);

void list_ips(ostream &, IA_Set<IA_Point<int> >);
void printIntSet(IA_Set<IA_Point<int> > ips);
void test_iter(IA_Set<IA_Point<int> > ps);

void test_arr_ps(IA_Set<IA_Point<double> > ps, const IA_Set<IA_Point<double> > *arr, unsigned len);

#endif
@


1.11
log
@updated for file name shortening (DblPoint, etc)
@
text
@d4 4
a7 1
// $Log: generic-tests.h,v $
d57 1
@


1.10
log
@IA_ prefix for most classes now necessary.
@
text
@d4 4
a7 1
// $Log:	generic-tests.h,v $
d37 1
a37 1
#include "with-ia-pointset.h"
d39 3
a41 2
#include "IntPointSet.h"
#include "FloatPointSet.h"
d43 4
a46 4
void test_union(IA_IntPointSet a, IA_IntPointSet b, IA_IntPointSet ab);
void test_intersection(IA_IntPointSet a, IA_IntPointSet b, IA_IntPointSet ab);
void test_XOR(IA_IntPointSet a, IA_IntPointSet b, IA_IntPointSet ab);
void test_minus(IA_IntPointSet a, IA_IntPointSet b, IA_IntPointSet ab);
d48 3
a50 3
void test_restriction(IA_IntPointSet a, IA_IntPointSet b);
void test_dualrestriction(IA_IntPointSet a, IA_IntPointSet b);
void test_extension(IA_IntPointSet a, IA_IntPointSet b);
d52 2
a53 2
void test_offset(IA_IntPointSet a, IA_IntPoint x, IA_IntPointSet ax);
void test_minkowski(IA_IntPointSet a, IA_IntPointSet b, IA_IntPointSet ab);
d55 1
a55 1
void test_arr_ps(IA_IntPointSet ps, const IA_IntPoint *arr, unsigned len);
d57 3
a59 3
void list_ips(ostream &, IA_IntPointSet);
void printIntSet(IA_IntPointSet ips);
void test_iter(IA_IntPointSet ps);
d61 1
a61 1
void test_arr_ps(IA_FloatPointSet ps, const IA_FloatPoint *arr, unsigned len);
@


1.9
log
@conversion to IA_ mostly complete
@
text
@d5 3
d36 2
a37 4
void test_union(IntPointSet a, IntPointSet b, IntPointSet ab);
void test_intersection(IntPointSet a, IntPointSet b, IntPointSet ab);
void test_XOR(IntPointSet a, IntPointSet b, IntPointSet ab);
void test_minus(IntPointSet a, IntPointSet b, IntPointSet ab);
d39 4
a42 3
void test_restriction(IntPointSet a, IntPointSet b);
void test_dualrestriction(IntPointSet a, IntPointSet b);
void test_extension(IntPointSet a, IntPointSet b);
d44 3
a46 2
void test_offset(IntPointSet a, IntPoint x, IntPointSet ax);
void test_minkowski(IntPointSet a, IntPointSet b, IntPointSet ab);
d48 2
a49 1
void test_arr_ps(IntPointSet ps, const IntPoint *arr, unsigned len);
d51 7
a57 3
void list_ips(ostream &, IntPointSet);
void printIntSet(IntPointSet ips);
void test_iter(IntPointSet ps);
@


1.8
log
@test of another restriction utility.
@
text
@d5 3
d30 2
@


1.7
log
@test of new image extension support routines.
@
text
@d5 3
d34 1
@


1.6
log
@added test for image restriction utility.
@
text
@d5 3
d31 1
@


1.5
log
@added minkowski test.
@
text
@d5 3
d26 2
@


1.4
log
@new test for the IntPoint array constructor
@
text
@d5 3
d25 1
@


1.3
log
@new test for translation verification
@
text
@d5 3
d13 3
d23 2
d28 2
@


1.2
log
@CFrontified version
@
text
@d5 3
d14 2
@


1.1
log
@Initial revision
@
text
@d4 1
a4 1
// $Log$
d12 1
@
