Changeset 774:4297098d9677 in lemon-0.x for src/test/xy_test.cc
- Timestamp:
- 08/30/04 14:01:47 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1066
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/test/xy_test.cc
r727 r774 8 8 { 9 9 10 cout << "Testing classes xy and boundingbox." << endl;10 cout << "Testing classes `xy' and `boundingbox'." << endl; 11 11 12 12 typedef xy<int> XY; … … 34 34 typedef BoundingBox<int> BB; 35 35 BB doboz1; 36 check(doboz1.empty(), " empty? Should be.");36 check(doboz1.empty(), "It should be empty."); 37 37 38 38 doboz1 += a; 39 check(!doboz1.empty(), " empty? Should not be.");39 check(!doboz1.empty(), "It should not be empty."); 40 40 doboz1 += b; 41 41 … … 47 47 48 48 seged.x=2;seged.y=3; 49 check(doboz1.inside(seged),"I nside? It should be.");49 check(doboz1.inside(seged),"It should be inside."); 50 50 51 51 seged.x=1;seged.y=3; 52 check(doboz1.inside(seged),"I nside? It should be.");52 check(doboz1.inside(seged),"It should be inside."); 53 53 54 54 seged.x=0;seged.y=3; 55 check(!doboz1.inside(seged),"I nside? It should not be.");55 check(!doboz1.inside(seged),"It should not be inside."); 56 56 57 57 BB doboz2(seged); 58 58 check(!doboz2.empty(), 59 " empty? Should not be. Constructed from 1 point.");59 "It should not be empty. Constructed from 1 point."); 60 60 61 61 doboz2 += doboz1; 62 62 check(doboz2.inside(seged), 63 " Not inside? It should be. Incremented a box with an other.");63 "It should be inside. Incremented a box with an other."); 64 64 }
Note: See TracChangeset
for help on using the changeset viewer.