correct test and cleaned up code format
@@ -79,19 +79,11 @@ public void testCreateRegionWithBounds() {
}
@Test
- public void testRegionEmptyIfMaxLessThanMin() {
+ public void testRegionInvalidIfMaxLessThanMin() {
BlockRegion region = new BlockRegion(new Vector3i(0, 0, 0), new Vector3i(-1, 0, 0));
assertFalse(region.isValid());
}
- @Test
- public void testRegionEmptyIfSizeZeroOrLess() {
- BlockRegion region = new BlockRegion().union(new Vector3i(1, 1, 1)).setSize(new Vector3i(0, 1, 1));
- assertFalse(region.isValid());
- region = new BlockRegion().union(new Vector3i(1, 1, 1)).setSize(new Vector3i(1, -1, 1));
- assertFalse(region.isValid());
- }
-
@Test
public void testIterateRegion() {
Vector3i min = new Vector3i(2, 5, 7);
