Rushi98 opened a new pull request #815:
URL: https://github.com/apache/commons-lang/pull/815


   Add test for when other range fully contains this range.
   
   The existing suite of tests would have allowed for following implementation 
of isOverlappedBy to pass -
   ```
       public boolean isOverlappedBy(final Range<T> otherRange) {
           if (otherRange == null) {
               return false;
           }
           return contains(otherRange.minimum) || contains(otherRange.maximum);
       }
   ```
   
   This would have been regression, since it does not consider case when other 
range fully contains this range. So, now we have a test to guard against it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to