head	1.6;
access
	thoth
	monica;
symbols
	r0_9:1.2
	Eglin_alpha_1:1.2;
locks; strict;
comment	@// @;


1.6
date	94.10.06.00.42.50;	author monica;	state Exp;
branches;
next	1.5;

1.5
date	94.10.03.17.12.59;	author monica;	state Exp;
branches;
next	1.4;

1.4
date	94.09.01.17.38.06;	author monica;	state Exp;
branches;
next	1.3;

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

1.2
date	92.09.29.15.28.43;	author jm;	state Exp;
branches;
next	1.1;

1.1
date	92.09.16.17.20.45;	author jm;	state Exp;
branches;
next	;


desc
@test program #001
@


1.6
log
@made dos filename compatible
@
text
@//  $RCS$
//    $Log: test001.c,v $
// Revision 1.5  1994/10/03  17:12:59  monica
// removed call to function value_range
//
// Revision 1.4  1994/09/01  17:38:06  monica
// got rid of include of stream.h
//
// Revision 1.3  1994/08/17  03:52:24  monica
// added int main
// added return 0
//
// Revision 1.2  1992/09/29  15:28:43  jm
// *** empty log message ***

// Revision 1.1  92/09/16  17:20:45  jm
// Initial revision
 


#include <iostream.h>
#include "Set.h"
#include "vs-util.h"

int main () {

    // union

    IA_Set<int> a,b,c;
    int x;

    a = IA_Set<int>(3,2,5,4,1) | IA_Set<int>(5,7,3,6);

//    cout << "a = " << a << "\n";
//    cout << "b = " << b << "\n";
//    cout << "c = " << c << "\n";

    b = b != c;
//    cout << "b = " << b << "\n";
    b = a;
//    cout << "b = " << b << "\n";
    x = a == b;
//    cout << "x = " << x << "\n";

    x = a  != b;
//    cout << "x = " << x << "\n";

      //    cout << "b = " << b << "\n";

    b = IA_Set<int>(79,88,90,93);

    cout << "b contains 88 " << (b.contains(88) == 0 ? "false":"true") << '\n';
    cout << "b contains 90 " << (b.contains(90) == 0 ? "false":"true") << '\n';
    cout << "b contains 92 " << (b.contains(92) == 0 ? "false":"true") << '\n';
    cout << "b contains 93 " << (b.contains(93) == 0 ? "false":"true") << '\n';
    cout << "b contains 94 " << (b.contains(94) == 0 ? "false":"true") << '\n';

    //    IA_SetIter<int> next(b); 

    //    while (next(x))
    //	cout << " next: " << x;

    return 0;

}


@


1.5
log
@removed call to function value_range
@
text
@d3 3
d23 1
a23 1
#include "valueset-utils.h"
@


1.4
log
@got rid of include of stream.h
@
text
@d1 5
a5 2
/*  $RCS$
    $Log: test001.c,v $
d10 7
a16 7
 * Revision 1.2  1992/09/29  15:28:43  jm
 * *** empty log message ***
 *
 * Revision 1.1  92/09/16  17:20:45  jm
 * Initial revision
 * 
*/
a44 1
    b = value_range(78,93);
@


1.3
log
@added int main
added return 0
@
text
@d3 4
d15 1
a15 1
#include <stream.h>
@


1.2
log
@*** empty log message ***
@
text
@d2 4
a5 1
    $Log:	test001.c,v $
d12 1
a12 1
#include "ValueSet.h"
d15 1
a15 1
main () {
d17 1
a17 1
    // intersection
d19 1
a19 1
    ValueSet<int> a,b,c;
d22 1
a22 1
    a = ValueSet<int>(3,2,5,4,1) | ValueSet<int>(5,7,3,6);
d24 3
a26 3
    cout << "a = " << a << "\n";
    cout << "b = " << b << "\n";
    cout << "c = " << c << "\n";
d29 1
a29 1
    cout << "b = " << b << "\n";
d31 1
a31 1
    cout << "b = " << b << "\n";
d33 1
a33 1
    cout << "x = " << x << "\n";
d36 1
a36 1
    cout << "x = " << x << "\n";
d39 1
a39 1
    cout << "b = " << b << "\n";
d41 2
d49 6
a54 1
    ValueSetIter<int> next(b);
a55 2
    while (next(x))
	cout << " next: " << x; 
@


1.1
log
@Initial revision
@
text
@d2 4
a5 1
    $Log$
@
