head     1.9;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @// @;


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

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

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

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

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

1.4
date     92.05.21.08.07.36;  author fischer;  state Exp;
branches ;
next     1.3;

1.3
date     92.05.20.06.30.48;  author fischer;  state Exp;
branches ;
next     1.2;

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

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


desc
@this is a test program for coordinate.  It exercises
output, assignment, and construction.
@


1.9
log
@add non-exiting throw tests.
@
text
@static char rcsid[] = "$Id: test001.cc,v 1.8 92/06/16 14:24:53 thoth Exp Locker: thoth $";

//
// $Log:	test001.cc,v $
// Revision 1.8  92/06/16  14:24:53  thoth
// slight improvements in usefulness of output
// 
// Revision 1.7  92/06/10  11:39:56  thoth
// updated to reflect new conventions
// 
// Revision 1.6  92/05/21  20:24:25  thoth
// switched to // comments for rcs log
// 
// Revision 1.5  92/05/21  12:04:55  thoth
// removed emacs local variables.
// 
// Revision 1.4  92/05/21  08:07:36  fischer
// Started rework of CoordType to IA::NumericType
// so all classes can access.
// 
// Revision 1.3  92/05/20  06:30:48  fischer
// Used Coord.output(cout) routine of Rob's
// to get around broken << operator.
// 
// Revision 1.2  92/05/16  13:57:40  thoth
// added log goo
// 
// Revision 1.1  92/05/16  13:46:39  thoth
// Initial revision
//


#include	<iostream.h>
#include	"Coord.h"

int main(int argc, char**argv)
{
    Coord	c1(1), c2(3.4), c3, c4;

    IA::exit_on_throw = 0;

    cout << "expected\tresult\n";
    cout << "--------\t------\n";
    cout << "1\t\t" << c1 << '\n';
    cout << "3.4\t\t" << c2 << '\n';
    c3 = 1;
    cout << "1\t\t" << c3 << '\n';
    c3 = 4.5;
    cout << "4.5\t\t" << c3 << '\n';
    c3 = c2;
    cout << "3.4\t\t" << c3 << '\n' << flush;
    c3 = c4;
    cout << "initted by uninitted, expect error when printing:\n";
    cout << c3 << '\n' << flush;
    cout << "uninitted, expect error:\n";
    cout << c4 << '\n' << flush;
}
@


1.8
log
@slight improvements in usefulness of output
@
text
@d1 1
a1 1
static char rcsid[] = "$Id: test001.cc,v 1.7 92/06/10 11:39:56 thoth Exp Locker: thoth $";
d5 3
d40 1
a40 1
//    NumericType  foo;
d51 6
a56 3
    cout << "3.4\t\t" << c3 << '\n';
    cout << "uninitted, expect error: ";
    cout << c4 << '\n';
@


1.7
log
@updated to reflect new conventions
@
text
@d1 1
a1 1
static char rcsid[] = "$Id: test001.cc,v 1.6 92/05/21 20:24:25 thoth Exp Locker: thoth $";
d5 3
d39 4
a42 3

    cout << c1 << '\n';
    cout << c2 << '\n';
d44 1
a44 1
    cout << c3 << '\n';
d46 1
a46 1
    cout << c3 << '\n';
d48 2
a49 2
    cout << c3 << '\n';
    cout << "uninitted, expected error: ";
@


1.6
log
@switched to // comments for rcs log
@
text
@d1 1
a1 1
static char rcsid[] = "$Id: test1.cc,v 1.5 92/05/21 12:04:55 thoth Exp Locker: thoth $";
d4 4
a7 1
// $Log:	test1.cc,v $
d28 1
a28 1
#include	<Coord.h>
d37 2
a38 4
    c1.output(cout);
    cout << '\n';
    c2.output(cout);
    cout << '\n';
d40 1
a40 2
    c3.output(cout);
    cout << '\n';
d42 1
a42 2
    c3.output(cout);
    cout << '\n';
d44 1
a44 2
    c3.output(cout);
    cout << '\n';
d46 1
a46 2
    c4.output(cout);
    cout  << '\n';
@


1.5
log
@removed emacs local variables.
@
text
@d1 1
a1 1
static char rcsid[] = "$Id: test1.cc,v 1.4 92/05/21 08:07:36 fischer Exp Locker: thoth $";
d3 20
a22 17
/*
 * $Log:	test1.cc,v $
 * Revision 1.4  92/05/21  08:07:36  fischer
 * Started rework of CoordType to IA::NumericType
 * so all classes can access.
 * 
 * Revision 1.3  92/05/20  06:30:48  fischer
 * Used Coord.output(cout) routine of Rob's
 * to get around broken << operator.
 * 
 * Revision 1.2  92/05/16  13:57:40  thoth
 * added log goo
 * 
 * Revision 1.1  92/05/16  13:46:39  thoth
 * Initial revision
 *
 */
@


1.4
log
@Started rework of CoordType to IA::NumericType
so all classes can access.
@
text
@d1 1
a1 1
static char rcsid[] = "$Id: test1.cc,v 1.3 92/05/20 06:30:48 fischer Exp Locker: fischer $";
d5 4
a47 4

// Local variables:
// eval: (joe-style)
// End:
@


1.3
log
@Used Coord.output(cout) routine of Rob's
to get around broken << operator.
@
text
@d1 1
a1 1
static char rcsid[] = "$Id: test1.cc,v 1.2 92/05/16 13:57:40 thoth Exp Locker: fischer $";
d5 4
d23 3
@


1.2
log
@added log goo
@
text
@d1 1
a1 1
static char rcsid[] = "$Id: test1.cc,v 1.1 92/05/16 13:46:39 thoth Exp Locker: thoth $";
d5 3
d20 4
a23 2
    cout << c1 << '\n';
    cout << c2 << '\n';
d25 2
a26 1
    cout << c3 << '\n';
d28 2
a29 1
    cout << c3 << '\n';
d31 5
a35 3
    cout << c3 << '\n';
    cout << "uninitted: ";
    cout << c4 << '\n';
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
static char rcsid[] = "$Id$";
d4 3
a6 1
 * $Log$
@
