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


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

1.6
date     92.06.21.06.08.43;  author fischer;  state Exp;
branches ;
next     1.5;

1.5
date     92.06.03.10.46.25;  author fischer;  state Exp;
branches ;
next     1.4;

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

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

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

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


desc
@not terribly well tested, since I can't
get Point to compile.
@


1.7
log
@added Point indexing tests.
@
text
@// This may look like C code, emacs, but it is really -*- C++ -*-

static char rcsid[] = "$Id: test1.cc,v 1.6 92/06/21 06:08:43 fischer Exp Locker: thoth $";

//
// $Log:	test1.cc,v $
// Revision 1.6  92/06/21  06:08:43  fischer
// removed set(index, val) reference, since it has been removed
// from Point.cc.
// 
// Revision 1.5  92/06/03  10:46:25  fischer
// *** empty log message ***
// 
// Revision 1.4  92/06/02  01:53:41  fischer
// *** empty log message ***
// 
// Revision 1.3  92/05/20  23:31:33  fischer
// updated to use output method.
// 
// Revision 1.2  92/05/19  14:28:43  thoth
// removed Local Variables:
// 
// Revision 1.1  92/05/19  01:39:41  thoth
// Initial revision
// 


#include <Point.h>

int main(int argc, char**argv)
{
    Point	a(0,0), b(3,1);
    
    IA::exit_on_throw = 0;

    cout << "a: " << a << '\n';
    cout << "b: " << b << '\n';
    
    b[0] = -2; 
    //  b.set(0, -2);
    cout << "b: " << b << '\n';
    
    cout << "expect exception: ";
    
    b[0] = 0.1;
    // b.set(0, 0.1);
    cout << "b: " << b << '\n';
    
    const Point	c(4,6.5,7);
    cout << "constant point:\n";
    cout << c[0] << ',' << c[1] << ',' << c[2] << '\n';
    c[1] = 3;  // I don't know why this is legal.
    // the return value of Point::operator[]const is a const Coord,
    // which is not an lhs.
    cout << c[0] << ',' << c[1] << ',' << c[2] << '\n';
}
@


1.6
log
@removed set(index, val) reference, since it has been removed
from Point.cc.
@
text
@d3 1
a3 1
static char rcsid[] = "$Id: test1.cc,v 1.5 92/06/03 10:46:25 fischer Exp Locker: fischer $";
d7 4
d32 3
a34 1
  Point	a(0,0), b(3,1), c, d, e;
d36 20
a55 14
  cout << "a: " << a << '\n';
  cout << "b: " << b << '\n';

 b[0] = -2; 
	//  b.set(0, -2);
  cout << "b: " << b << '\n';

  cout << "expect exception: ";

 b[0] = 0.1;
  	// b.set(0, 0.1);
  cout << "b: " << b << '\n';


@


1.5
log
@*** empty log message ***
@
text
@d3 1
a3 1
static char rcsid[] = "$Id: test1.cc,v 1.4 92/06/02 01:53:41 fischer Exp Locker: fischer $";
d7 3
d33 2
a34 2
  
  b.set(0, -2);
d38 3
a40 1
  b.set(0, 0.1);
@


1.4
log
@*** empty log message ***
@
text
@d1 1
a1 1
static char rcsid[] = "$Id: test1.cc,v 1.3 92/05/20 23:31:33 fischer Exp Locker: fischer $";
d3 2
d7 3
d21 1
a21 1
#include <Poynt.h>
d25 1
a25 1
  Poynt	a(0,0), b(3,1), c, d, e;
@


1.3
log
@updated to use output method.
@
text
@d1 1
a1 1
static char rcsid[] = "$Id: test1.cc,v 1.2 92/05/19 14:28:43 thoth Exp $";
d3 11
a13 10
/*
 * $Log:	test1.cc,v $
 * Revision 1.2  92/05/19  14:28:43  thoth
 * removed Local Variables:
 * 
 * Revision 1.1  92/05/19  01:39:41  thoth
 * Initial revision
 * 
 *
 */
a14 1
#include <Point.h>
d16 2
d20 1
a20 1
  Point	a(0,0), b(3,1), c(3,4.5), c2(3.3,4), d(5.12,4.5);
d22 3
a24 3
  cout << "a: ";
  a.output(cout);
  cout << "\n"; 
d26 8
a33 16
  cout << "b: ";
  b.output(cout);
  cout << "\n"; 
  
  cout << "c: ";
  c.output(cout);
  cout << "\n"; 
  
  cout << "c2: ";
  c2.output(cout);
  cout << "\n"; 
  
  cout << "d: ";
  d.output(cout);
  cout << "\n"; 
  
@


1.2
log
@removed Local Variables:
@
text
@d1 1
a1 1
static char rcsid[] = "$Id: test1.cc,v 1.1 92/05/19 01:39:41 thoth Exp Locker: thoth $";
d5 3
d20 20
a39 5
  cout << a << '\n';
  cout << b << '\n';
  cout << c << '\n';
  cout << c2 << '\n';
  cout << d << '\n';
@


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

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