use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.
the class RuntimeVersionTest method compare_11b.
@Test
public void compare_11b() {
final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R16B");
final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R14");
assertThat(test1.isCompatible(test2)).isEqualTo(true);
}
use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.
the class RuntimeVersionTest method toString_2.
@Test
public void toString_2() {
final String expect = "R12A";
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_3.
@Test
public void compare_3() {
final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R12A");
final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R12B");
assertThat(test1.compareTo(test2)).isLessThan(0);
}
use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.
the class RuntimeVersionTest method compare_3a.
@Test
public void compare_3a() {
final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R13A");
final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R13B");
assertThat(test1.compareTo(test2)).isLessThan(0);
}
use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.
the class RuntimeVersionTest method toString_4.
@Test
public void toString_4() {
final String expect = "R16B03-1";
final RuntimeVersion test = RuntimeVersion.Serializer.parse(expect);
assertThat(test.toString()).isEqualTo(expect);
}
Aggregations