CrazyHZM commented on code in PR #1099: URL: https://github.com/apache/maven/pull/1099#discussion_r1234787833
########## maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java: ########## @@ -162,21 +173,39 @@ void testVersionsEqual() { checkVersionsEqual("1A", "1a"); checkVersionsEqual("1B", "1b"); checkVersionsEqual("1M", "1m"); - checkVersionsEqual("1Ga", "1"); - checkVersionsEqual("1GA", "1"); - checkVersionsEqual("1RELEASE", "1"); - checkVersionsEqual("1release", "1"); - checkVersionsEqual("1RELeaSE", "1"); - checkVersionsEqual("1Final", "1"); - checkVersionsEqual("1FinaL", "1"); - checkVersionsEqual("1FINAL", "1"); checkVersionsEqual("1Cr", "1Rc"); checkVersionsEqual("1cR", "1rC"); checkVersionsEqual("1m3", "1Milestone3"); checkVersionsEqual("1m3", "1MileStone3"); checkVersionsEqual("1m3", "1MILESTONE3"); } + @Test + void testVersionsEqualOrderAndObjectInequality() { + checkVersionsEqualOrder("1ga", "1"); + checkVersionObjectInequality("1ga", "1"); Review Comment: It was a special behavior before the change, but now that it's not a special behavior, I've removed the test case. -- 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