sultan commented on code in PR #929: URL: https://github.com/apache/maven/pull/929#discussion_r1053454669
########## maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java: ########## @@ -346,4 +342,22 @@ public void testReuse() { assertEquals(c1, c2, "reused instance should be equivalent to new instance"); } + + /** + * Test <a href="https://issues.apache.org/jira/browse/MNG-7559">MNG-7559</a> edge cases + * 1.0.0.RC1 < 1.0.0-RC2 + * -pfd < final, ga, release + * 2.0.1.MR < 2.0.1 + * 9.4.1.jre16 > 9.4.1.jre16-preview + */ + @Test + public void testMng7559() { + checkVersionsOrder("1.0.0.RC1", "1.0.0-RC2"); + checkVersionsOrder("4.0.0.Beta3", "4.0.0-RC2"); + checkVersionsOrder("2.3-pfd", "2.3"); + checkVersionsOrder("2.0.1.MR", "2.0.1"); + checkVersionsOrder("9.4.1.jre16-preview", "9.4.1.jre16"); Review Comment: the current PR supports no new hard coded value and relies on lexical ordering -- 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: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org