*/
public class VersionRangeTest {
@Test
public void dashRange() {
VersionRange range = VersionRange.create("1.2.0 - 1.3.0");
assertTrue(range.isIncluded(Version.create(1, 2, 0)));
assertTrue(range.isIncluded(Version.create(1, 3, 0, "alpha")));
assertTrue(range.isIncluded(Version.create(1, 3, 0)));
assertFalse(range.isIncluded(Version.create(1, 2, 0, "alpha")));
assertFalse(range.isIncluded(Version.create(1, 3, 1)));
range = VersionRange.create("1.2.0 - 1.3.0-");
assertTrue(range.isIncluded(Version.create(1, 2, 0)));
assertFalse(range.isIncluded(Version.create(1, 3, 0, "alpha")));
assertFalse(range.isIncluded(Version.create(1, 3, 0)));
range = VersionRange.create("1.2.0- - 1.3.0");
assertTrue(range.isIncluded(Version.create(1, 2, 0)));
assertTrue(range.isIncluded(Version.create(1, 3, 0, "alpha")));
assertTrue(range.isIncluded(Version.create(1, 3, 0)));
assertTrue(range.isIncluded(Version.create(1, 2, 0, "alpha")));
}