fix(gui): update check fixed to match current artifact naming

This commit is contained in:
Skylot
2024-10-17 21:38:49 +01:00
parent 249801880c
commit a43b3282ef
8 changed files with 74 additions and 209 deletions
@@ -28,6 +28,11 @@ class VersionComparatorTest {
checkCompare("1.3.3.1-1", "1.3.3", 1);
}
@Test
public void testCompareUnstable() {
checkCompare("r2190.ce527ed", "jadx-r2299.742d30d", -1);
}
private static void checkCompare(String a, String b, int result) {
assertThat(VersionComparator.checkAndCompare(a, b))
.as("Compare %s and %s expect %d", a, b, result)