This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git
The following commit(s) were added to refs/heads/master by this push:
new dec4a12 Test for invalid report
dec4a12 is described below
commit dec4a12e06865782b261b4bfb85d5f2d797c6ed5
Author: Sebb <[email protected]>
AuthorDate: Tue Jun 23 17:08:24 2020 +0100
Test for invalid report
---
src/test/java/org/apache/commons/net/SubnetUtilsTest.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/test/java/org/apache/commons/net/SubnetUtilsTest.java
b/src/test/java/org/apache/commons/net/SubnetUtilsTest.java
index ea47ed5..871a38f 100644
--- a/src/test/java/org/apache/commons/net/SubnetUtilsTest.java
+++ b/src/test/java/org/apache/commons/net/SubnetUtilsTest.java
@@ -213,6 +213,14 @@ public class SubnetUtilsTest extends TestCase {
assertTrue(info.isInRange("192.168.0.15"));
}
+ public void testNET679() {
+ SubnetUtils utils = new SubnetUtils("10.213.160.0/16");
+ utils.setInclusiveHostCount(true);
+ SubnetInfo info = utils.getInfo();
+ assertTrue(info.isInRange("10.213.0.0"));
+ assertTrue(info.isInRange("10.213.255.255"));
+ }
+
public void testInvalidMasks() {
try {
new SubnetUtils("192.168.0.1/33");