void () { final PyPackage pyPackage = new PyPackage("somePackage", "0.5a3"); assertTrue("Failed to check alpha version", pyPackage.matches(createRequirement("somePackage>=0.4"))); assertTrue("Failed to check alpha version", pyPackage.matches(createRequirement("somePackage<=0.5"))); assertTrue("Failed to check alpha version", pyPackage.matches(createRequirement("somePackage>=0.5a"))); assertFalse("Failed to check alpha version", pyPackage.matches(createRequirement("somePackage>=0.6"))); assertFalse("Failed to check alpha version", pyPackage.matches(createRequirement("somePackage>=0.5.1"))); assertFalse("Failed to check alpha version", pyPackage.matches(createRequirement("somePackage>=1"))); }