Skip to content

Commit

Permalink
Snapshots do not in fact sort well without patches
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Mar 1, 2021
1 parent 048f899 commit 2b5eb31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/hudson/util/VersionNumberTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ public void snapshots() {
// This is changed from the old impl because snapshots are no longer a "magic" number
assertFalse(new VersionNumber("1.12-SNAPSHOT").equals(new VersionNumber("1.11.*")));
assertTrue(new VersionNumber("1.11.*").isNewerThan(new VersionNumber("1.11.9")));
/* TODO the reverse:
assertTrue(new VersionNumber("1.12-SNAPSHOT").isNewerThan(new VersionNumber("1.12-rc9999.abc123def456")));
*/
}

@Test
Expand Down

0 comments on commit 2b5eb31

Please sign in to comment.