void () { doRequirementRelationTest(LT, release("1.4")); doRequirementRelationTest(LTE, release("1.4")); doRequirementRelationTest(NE, release("1.4")); doRequirementRelationTest(EQ, release("1.4")); doRequirementRelationTest(GT, release("1.4")); doRequirementRelationTest(GTE, release("1.4")); doRequirementRelationTest(COMPATIBLE, release("1.*")); assertEquals(pyRequirement("name", STR_EQ, "version"), fromLine("name===version")); doRequirementRelationTest(Arrays.asList(GTE, EQ), Arrays.asList(release("2.8.1"), release("2.8.*"))); doRequirementRelationTest(Arrays.asList(LT, GTE), Arrays.asList(release("1.4"), release("1.3.1"))); doRequirementRelationTest(Arrays.asList(LT, GT, NE, LT, EQ), Arrays.asList(release("1.6"), release("1.9"), release("1.9.6"), new PyPackageVersion(null, "2.0", "a0", null, null, null), new PyPackageVersion(null, "2.4", "rc1", null, null, null))); // PY-14583 doRequirementRelationTest(Arrays.asList(GTE, LTE, GTE, LTE), Arrays.asList(release("0.8.4"), release("0.8.99"), release("0.9.7"), release("0.9.99"))); }