From 19fa67e21962968aa8c9ea6fd70fe764079a5ff2 Mon Sep 17 00:00:00 2001 From: Nahuel Dalla Vecchia Date: Fri, 14 Dec 2012 16:06:15 -0300 Subject: Fix greater than case when comparing patch --- api/src/test/java/org/semver/VersionTest.java | 1 + 1 file changed, 1 insertion(+) (limited to 'api/src/test/java/org/semver') diff --git a/api/src/test/java/org/semver/VersionTest.java b/api/src/test/java/org/semver/VersionTest.java index 0acf85c..8f4ac79 100755 --- a/api/src/test/java/org/semver/VersionTest.java +++ b/api/src/test/java/org/semver/VersionTest.java @@ -93,6 +93,7 @@ public class VersionTest { @Test public void isNewer() { + Assert.assertTrue(Version.parse("3.2.3").compareTo(Version.parse("3.2-M1-SNAPSHOT")) > 0); Assert.assertTrue(Version.parse("1.0.0").compareTo(Version.parse("0.0.0")) > 0); Assert.assertTrue(Version.parse("0.0.0").compareTo(Version.parse("1.0.0")) < 0); Assert.assertTrue(Version.parse("1.1.0").compareTo(Version.parse("1.0.0")) > 0); -- cgit v1.2.3