use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.
the class RuntimeVersionTest method compare_5a.
@Test
public void compare_5a() {
final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R13A03");
final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R13B01");
assertThat(test1.compareTo(test2)).isLessThan(0);
}
use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.
the class RuntimeVersionTest method compare_11a.
@Test
public void compare_11a() {
final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R14");
final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R14B");
assertThat(test1.isCompatible(test2)).isEqualTo(true);
}
use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.
the class RuntimeVersionTest method toString_4a.
@Test
public void toString_4a() {
final String expect = "R16B03_aaa1";
final RuntimeVersion test = RuntimeVersion.Serializer.parse(expect);
assertThat(test.toString()).isEqualTo(expect);
}
use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.
the class RuntimeVersionTest method compare_10a.
@Test
public void compare_10a() {
final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("17.0.0-rc1");
final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("17.0.0-rc2");
assertThat(test1.compareTo(test2)).isLessThan(0);
}
use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.
the class RuntimeVersionTest method compare_11.
@Test
public void compare_11() {
final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R14B");
final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R14");
assertThat(test1.isCompatible(test2)).isEqualTo(true);
}
Aggregations