[BugFix] Version Compare (#500)

BugFix of Version

add new TestCase

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/500
Reviewed-by: M M Arif <mmarif@swatian.com>
This commit is contained in:
6543
2020-05-21 14:13:14 +00:00
committed by M M Arif
parent 7bfdfa3223
commit ad7c3696d5
2 changed files with 10 additions and 2 deletions

View File

@@ -114,6 +114,9 @@ public class Version {
if(this.values.get(i) > v.values.get(i)) {
return false;
}
else if(this.values.get(i) < v.values.get(i)) {
return true;
}
}
}
return true;
@@ -152,6 +155,9 @@ public class Version {
if(this.values.get(i) < v.values.get(i)) {
return false;
}
else if(this.values.get(i) > v.values.get(i)) {
return true;
}
}
}
return true;