void function ( ) { assertTrue ( rectangle . overlaps ( new Rectangle ( 2 , - 1 , 2 , 2 ) ) ) ; }
ensures two rectangles are overlaps when the top left corner of one rectangle overlaps the right corner of another . concode_field_sep double EPSILON concode_elem_sep Rectangle rectangle concode_field_sep void overlapsWhenLeftSideOverlapsMiddleOfOther concode_elem_sep void constructorShouldAllowNegativeValuesForY concode_elem_sep void constructorShouldAllowNegativeValuesForX concode_elem_sep void testHeight concode_elem_sep void overlapsWhenBottomRightOverlapsTopLeftOfOther concode_elem_sep void overlapsWhenRightSideOverlapsLeftSideOfOther concode_elem_sep void overlapsWhenRightSideOverlapsMiddleOfOther concode_elem_sep void overlapsWhenLeftSideOverlapsRightSideOfOther concode_elem_sep void overlapsWhenBottomLeftOverlapsRightOfOther concode_elem_sep void overlapsWhenBottomRightInsideOther concode_elem_sep void testX concode_elem_sep void testY concode_elem_sep void overlapsWhenTopRightInsideOther concode_elem_sep void overlapsWhenBottomRightOverlapsLeftOfOther concode_elem_sep void setUp concode_elem_sep void testoverlapsNullArgument concode_elem_sep void overlapsWhenTopRightOverlapsBottomOfOther concode_elem_sep void overlapsWhenTopLeftInsideOther concode_elem_sep void constructorShouldAllowZeroForWidth concode_elem_sep void overlapsWhenBottomLeftOverlapsTopRightOfOther concode_elem_sep void overlapsWhenTopSideOverlapsMiddleOfOther concode_elem_sep void overlapsWhenBottomLeftInsideOther concode_elem_sep void overlapsWhenBottomSideOverlapsMiddleOfOther concode_elem_sep void constructorShouldThrowAnExceptionForNegativeWidth concode_elem_sep void overlapsWhenOtherRectangleIsInsideCaller concode_elem_sep void overlapsWhenRightSideInsideOther concode_elem_sep void constructorShouldAllowZeroForHeight concode_elem_sep void overlapsWhenBottomSideOverlapsTopSideOfOther concode_elem_sep void constructorShouldAllowZeroForX concode_elem_sep void constructorShouldAllowZeroForY concode_elem_sep void overlapsWhenTopRightOverlapsBottomLeftOfOther concode_elem_sep void overlapsWhenMiddlesOverlap concode_elem_sep void doesntOverlapWhenYOverlapsButXDoesNot concode_elem_sep void overlapsWhenLeftSideInsideOther concode_elem_sep void constructorShouldThrowAnExceptionForNegativeHeight concode_elem_sep void overlapsWhenTopSideInsideOther concode_elem_sep void overlapsWhenTopSideOverlapsBottomSideOfOther concode_elem_sep void overlapsWhenTopRightOverlapsLeftOfOther concode_elem_sep void sanityCheck concode_elem_sep void overlapsWhenCallerIsInsideTheOtherRectangle concode_elem_sep void doesntOverlapWhenDoesntOverlap concode_elem_sep void colldingWhenEqual concode_elem_sep void testWidth concode_elem_sep void overlapsWhenBottomRightOverlapsTopOfOther concode_elem_sep void overlapsWhenTopLeftOverlapsBottomOfOther concode_elem_sep void overlapsWhenBottomLeftOverlapsTopOfOther concode_elem_sep void overlapsWhenTopLeftOverlapsBottomRightOfOther concode_elem_sep void overlapsWhenBottomSideInsideOther concode_elem_sep void doesntOverlapWhenXOverlapsButYDoesNot