Skip to content

Commit bf112bd

Browse files
committed
Added tests to mmn13 tester
1 parent 96e60b9 commit bf112bd

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Testers/ממן13/Tester.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,16 @@ else if(coll.mostUpperBaseCorner().toString().equals("The base point is (49.0,50
142142
else
143143
System.out.println(BAD);
144144

145-
System.out.println("Checking getBoxes: ");
145+
// Aliasing check
146+
Box3D[] boxes = coll3.getBoxes();
147+
boxes[0].setBase(new Point3D(5,5,5));
148+
// Get all boxes
146149
Box3D[] arr = coll.getBoxes();
147-
if(arr.length == 50 && !nullExist(arr))
150+
151+
System.out.println("Checking getBoxes: ");
152+
if(coll3.getBoxes()[0].equals(boxes[0]))
153+
System.out.println(ALIASING);
154+
else if(arr.length == 50 && !nullExist(arr))
148155
System.out.println(GOOD);
149156
else
150157
System.out.println(BAD);

0 commit comments

Comments
 (0)