use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.
the class RuntimeVersionTest method compare_6a.
@Test
public void compare_6a() {
final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R16B03");
final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R16B03-1");
assertThat(test1.compareTo(test2)).isLessThan(0);
}
use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.
the class RuntimeVersionTest method compare_4a.
@Test
public void compare_4a() {
final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R13A01");
final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R13A02");
assertThat(test1.compareTo(test2)).isLessThan(0);
}
use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.
the class IErlProjectTest method getRuntimeVersion.
// RuntimeVersion getRuntimeVersion();
@Test
public void getRuntimeVersion() throws Exception {
final IErlProject aProject = ErlModelTestBase.projects[0];
final RuntimeVersion version = aProject.getRuntimeVersion();
assertNotNull(version);
final int majorVersion = version.getMajor();
assertTrue(majorVersion >= 12);
}
use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.
the class RuntimeVersionTest method compare_7.
@Test
public void compare_7() {
final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("17.2.0");
final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("18.1.0");
assertThat(test1.compareTo(test2)).isLessThan(0);
}
use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.
the class RuntimeVersionTest method compare_9.
@Test
public void compare_9() {
final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("17.1.1");
final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("17.1.2");
assertThat(test1.compareTo(test2)).isLessThan(0);
}
Aggregations