equal
deleted
inserted
replaced
49 |
49 |
50 typedef BoundingBox<int> BB; |
50 typedef BoundingBox<int> BB; |
51 BB doboz1; |
51 BB doboz1; |
52 check(doboz1.empty(), "It should be empty."); |
52 check(doboz1.empty(), "It should be empty."); |
53 |
53 |
54 doboz1 += a; |
54 doboz1.add(a); |
55 check(!doboz1.empty(), "It should not be empty."); |
55 check(!doboz1.empty(), "It should not be empty."); |
56 doboz1 += b; |
56 doboz1.add(b); |
57 |
57 |
58 check(doboz1.bottomLeft().x==1 && |
58 check(doboz1.bottomLeft().x==1 && |
59 doboz1.bottomLeft().y==2 && |
59 doboz1.bottomLeft().y==2 && |
60 doboz1.topRight().x==3 && |
60 doboz1.topRight().x==3 && |
61 doboz1.topRight().y==4, |
61 doboz1.topRight().y==4, |
72 |
72 |
73 BB doboz2(seged); |
73 BB doboz2(seged); |
74 check(!doboz2.empty(), |
74 check(!doboz2.empty(), |
75 "It should not be empty. Constructed from 1 point."); |
75 "It should not be empty. Constructed from 1 point."); |
76 |
76 |
77 doboz2 += doboz1; |
77 doboz2.add(doboz1); |
78 check(doboz2.inside(seged), |
78 check(doboz2.inside(seged), |
79 "It should be inside. Incremented a box with an other."); |
79 "It should be inside. Incremented a box with an other."); |
80 } |
80 } |