Merge pull request #25348 from nextcloud/test/compare-version-test

Add negative version comparison test for version suffixes
This commit is contained in:
Roeland Jago Douma 2021-01-27 21:00:54 +01:00 committed by GitHub
commit 4c75e917f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ class CompareVersionTest extends TestCase {
['7.4.14', '7.4', '<=', true],
['7.4.14-ubuntu', '7.4', '<=', true],
['7.4.14-ubuntu', '7.4.15', '<=', true],
['7.4.16-ubuntu', '7.4.15', '<=', false],
// Incompatible major versions
['13.0.0.3', '13.0.0', '<', false],
['12.0.0', '13.0.0', '>=', false],