This is an automated email from the ASF dual-hosted git repository.
jaikiran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant-ivy.git
The following commit(s) were added to refs/heads/master by this push:
new 2cf83cc IVY-1614 Add a test to show that Maven version range
exclusion syntax is correctly honoured
2cf83cc is described below
commit 2cf83cc35ab1bd8b2fa9d968e879f7b488072642
Author: Jaikiran Pai <[email protected]>
AuthorDate: Sat Feb 13 10:24:00 2021 +0530
IVY-1614 Add a test to show that Maven version range exclusion syntax is
correctly honoured
---
.../java/org/apache/ivy/plugins/version/VersionRangeMatcherTest.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/test/java/org/apache/ivy/plugins/version/VersionRangeMatcherTest.java
b/test/java/org/apache/ivy/plugins/version/VersionRangeMatcherTest.java
index bd36e0c..1a0dc20 100644
--- a/test/java/org/apache/ivy/plugins/version/VersionRangeMatcherTest.java
+++ b/test/java/org/apache/ivy/plugins/version/VersionRangeMatcherTest.java
@@ -45,6 +45,9 @@ public class VersionRangeMatcherTest {
assertAccept("(3.8,4.0)", "3.9", true);
assertAccept("(3.8,4.0)", "4.0", false);
assertAccept("(3.8,4.0)", "4.1", false);
+
+ assertAccept("[2.3.0,3.0.0)", "3.0.0", false);
+ assertAccept("[2.3.0,3.0.0)", "2.3.0", true);
}
@Test
@@ -117,6 +120,8 @@ public class VersionRangeMatcherTest {
assertAccept("[1.0,2.0[", "2.0", false);
assertAccept("]1.0,2.0[", "2.0", false);
assertAccept("]1.0,2.0]", "2.0", true);
+ assertAccept("[2.3.0,3.0.0[", "3.0.0", false);
+ assertAccept("[2.3.0,3.0.0[", "2.3.0", true);
}
@Test