This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new ad37cca  Add test idea for RangeTest from PR #815 by Rushi98, but with 
a new comment.
ad37cca is described below

commit ad37cca1caef01cb3d54e479b42d44346f93ac2b
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Oct 17 08:50:39 2021 -0400

    Add test idea for RangeTest from PR #815 by Rushi98, but with a new
    comment.
---
 src/changes/changes.xml                               | 1 +
 src/test/java/org/apache/commons/lang3/RangeTest.java | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index e3c3793..8fc0822 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -60,6 +60,7 @@ The <action> type attribute can be add,update,fix,remove.
     <action                   type="fix" dev="ggregory" due-to="Arturo 
Bernal">Avoid multiple equivalent occurrences of the same expression. 
#797.</action>
     <action                   type="fix" dev="ggregory" due-to="Arturo 
Bernal">Remove redundant initializers #800.</action>
     <action                   type="fix" dev="ggregory" due-to="Arturo 
Bernal">Fix ObjectUtils Javadocs #755.</action>
+    <action                   type="fix" dev="ggregory" due-to="Rushi98, Gary 
Gregory">Add test idea for RangeTest from PR #815 by Rushi98, but with a new 
comment.</action>
     <!-- ADD -->
     <action                   type="add" dev="ggregory" due-to="Gary 
Gregory">Add EnumUtils.getEnumSystemProperty(...).</action>
     <action                   type="add" dev="ggregory" due-to="Gary 
Gregory">Add TriConsumer.</action>
diff --git a/src/test/java/org/apache/commons/lang3/RangeTest.java 
b/src/test/java/org/apache/commons/lang3/RangeTest.java
index ded59e4..a7e7549 100644
--- a/src/test/java/org/apache/commons/lang3/RangeTest.java
+++ b/src/test/java/org/apache/commons/lang3/RangeTest.java
@@ -328,7 +328,10 @@ public class RangeTest {
 
         // negative
         assertFalse(intRange.isOverlappedBy(Range.between(-11, -18)));
-    }
+
+        // outside range whole range
+        assertTrue(intRange.isOverlappedBy(Range.between(9, 21)));
+}
 
     @Test
     public void testIsStartedBy() {

Reply via email to